{"action":"created","comment":{"url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/comments/113858377","pull_request_review_id":35280963,"id":113858377,"diff_hunk":"@@ -0,0 +1,61 @@\n+import React from 'react';\n+import Dialog from './Dialog';\n+import Button from '../Button/Button';\n+\n+export default class DialogExample2 extends React.Component {\n+  state = {\n+    visible: false,\n+    inLoading: false,\n+  }\n+\n+  onClick = () => {\n+    this.setState({visible: true});\n+  }\n+\n+  onClose = () => {\n+    this.setState({\n+      visible: false,\n+      inLoading: false,\n+    });\n+  }\n+\n+  onDestroyOnCloseChange = (e) => {\n+    this.setState({destroyOnClose: e.target.checked});\n+  }\n+\n+  onSubmit = () => {\n+    console.log('on submit');\n+    this.setState({inLoading: true});\n+  }\n+\n+  render() {\n+    return (\n+      <div>\n+        <h4>Dialog: confirm</h4>\n+        <p>\n+          <button onClick={this.onClick}>\n+            show dialog\n+          </button>\n+        </p>\n+        <Dialog\n+          className='is-confirmation'\n+          visible={this.state.visible}\n+          onClose={this.onClose}\n+          title='Удалить группы без товаров?'\n+        >\n+          {!this.state.inLoading ?","path":"src/Dialog/example2.js","position":46,"original_position":46,"commit_id":"8d85eeedf64b60ac73372dcc30733b572446586c","original_commit_id":"8d85eeedf64b60ac73372dcc30733b572446586c","user":{"login":"Kupov","id":7761156,"avatar_url":"https://avatars1.githubusercontent.com/u/7761156?v=3","gravatar_id":"","url":"https://api.github.com/users/Kupov","html_url":"https://github.com/Kupov","followers_url":"https://api.github.com/users/Kupov/followers","following_url":"https://api.github.com/users/Kupov/following{/other_user}","gists_url":"https://api.github.com/users/Kupov/gists{/gist_id}","starred_url":"https://api.github.com/users/Kupov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kupov/subscriptions","organizations_url":"https://api.github.com/users/Kupov/orgs","repos_url":"https://api.github.com/users/Kupov/repos","events_url":"https://api.github.com/users/Kupov/events{/privacy}","received_events_url":"https://api.github.com/users/Kupov/received_events","type":"User","site_admin":false},"body":"вынеси в функцию, давай писать более читабельный код и не будем делать условия в рендоре","created_at":"2017-04-28T06:15:02Z","updated_at":"2017-04-28T06:37:09Z","html_url":"https://github.com/abak-press/apress-assets-table/pull/35#discussion_r113858377","pull_request_url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/comments/113858377"},"html":{"href":"https://github.com/abak-press/apress-assets-table/pull/35#discussion_r113858377"},"pull_request":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/35","id":116757221,"html_url":"https://github.com/abak-press/apress-assets-table/pull/35","diff_url":"https://github.com/abak-press/apress-assets-table/pull/35.diff","patch_url":"https://github.com/abak-press/apress-assets-table/pull/35.patch","issue_url":"https://api.github.com/repos/abak-press/apress-assets-table/issues/35","number":35,"state":"open","locked":false,"title":"Внедрение диалогов, меню для рубрикатора, редактор пикчей","user":{"login":"dontuse","id":710671,"avatar_url":"https://avatars0.githubusercontent.com/u/710671?v=3","gravatar_id":"","url":"https://api.github.com/users/dontuse","html_url":"https://github.com/dontuse","followers_url":"https://api.github.com/users/dontuse/followers","following_url":"https://api.github.com/users/dontuse/following{/other_user}","gists_url":"https://api.github.com/users/dontuse/gists{/gist_id}","starred_url":"https://api.github.com/users/dontuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dontuse/subscriptions","organizations_url":"https://api.github.com/users/dontuse/orgs","repos_url":"https://api.github.com/users/dontuse/repos","events_url":"https://api.github.com/users/dontuse/events{/privacy}","received_events_url":"https://api.github.com/users/dontuse/received_events","type":"User","site_admin":false},"body":"https://jira.railsc.ru/browse/GOODS-478\r\nhttps://jira.railsc.ru/browse/GOODS-512","created_at":"2017-04-20T12:16:46Z","updated_at":"2017-04-28T06:37:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff1de56034a3e2cdd1705a2a6ec01e5b5f0d8ccf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/35/commits","review_comments_url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/35/comments","review_comment_url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abak-press/apress-assets-table/issues/35/comments","statuses_url":"https://api.github.com/repos/abak-press/apress-assets-table/statuses/8d85eeedf64b60ac73372dcc30733b572446586c","head":{"label":"dontuse:dialog","ref":"dialog","sha":"8d85eeedf64b60ac73372dcc30733b572446586c","user":{"login":"dontuse","id":710671,"avatar_url":"https://avatars0.githubusercontent.com/u/710671?v=3","gravatar_id":"","url":"https://api.github.com/users/dontuse","html_url":"https://github.com/dontuse","followers_url":"https://api.github.com/users/dontuse/followers","following_url":"https://api.github.com/users/dontuse/following{/other_user}","gists_url":"https://api.github.com/users/dontuse/gists{/gist_id}","starred_url":"https://api.github.com/users/dontuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dontuse/subscriptions","organizations_url":"https://api.github.com/users/dontuse/orgs","repos_url":"https://api.github.com/users/dontuse/repos","events_url":"https://api.github.com/users/dontuse/events{/privacy}","received_events_url":"https://api.github.com/users/dontuse/received_events","type":"User","site_admin":false},"repo":{"id":85054536,"name":"apress-assets-table","full_name":"dontuse/apress-assets-table","owner":{"login":"dontuse","id":710671,"avatar_url":"https://avatars0.githubusercontent.com/u/710671?v=3","gravatar_id":"","url":"https://api.github.com/users/dontuse","html_url":"https://github.com/dontuse","followers_url":"https://api.github.com/users/dontuse/followers","following_url":"https://api.github.com/users/dontuse/following{/other_user}","gists_url":"https://api.github.com/users/dontuse/gists{/gist_id}","starred_url":"https://api.github.com/users/dontuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dontuse/subscriptions","organizations_url":"https://api.github.com/users/dontuse/orgs","repos_url":"https://api.github.com/users/dontuse/repos","events_url":"https://api.github.com/users/dontuse/events{/privacy}","received_events_url":"https://api.github.com/users/dontuse/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dontuse/apress-assets-table","description":null,"fork":true,"url":"https://api.github.com/repos/dontuse/apress-assets-table","forks_url":"https://api.github.com/repos/dontuse/apress-assets-table/forks","keys_url":"https://api.github.com/repos/dontuse/apress-assets-table/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dontuse/apress-assets-table/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dontuse/apress-assets-table/teams","hooks_url":"https://api.github.com/repos/dontuse/apress-assets-table/hooks","issue_events_url":"https://api.github.com/repos/dontuse/apress-assets-table/issues/events{/number}","events_url":"https://api.github.com/repos/dontuse/apress-assets-table/events","assignees_url":"https://api.github.com/repos/dontuse/apress-assets-table/assignees{/user}","branches_url":"https://api.github.com/repos/dontuse/apress-assets-table/branches{/branch}","tags_url":"https://api.github.com/repos/dontuse/apress-assets-table/tags","blobs_url":"https://api.github.com/repos/dontuse/apress-assets-table/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dontuse/apress-assets-table/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dontuse/apress-assets-table/git/refs{/sha}","trees_url":"https://api.github.com/repos/dontuse/apress-assets-table/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dontuse/apress-assets-table/statuses/{sha}","languages_url":"https://api.github.com/repos/dontuse/apress-assets-table/languages","stargazers_url":"https://api.github.com/repos/dontuse/apress-assets-table/stargazers","contributors_url":"https://api.github.com/repos/dontuse/apress-assets-table/contributors","subscribers_url":"https://api.github.com/repos/dontuse/apress-assets-table/subscribers","subscription_url":"https://api.github.com/repos/dontuse/apress-assets-table/subscription","commits_url":"https://api.github.com/repos/dontuse/apress-assets-table/commits{/sha}","git_commits_url":"https://api.github.com/repos/dontuse/apress-assets-table/git/commits{/sha}","comments_url":"https://api.github.com/repos/dontuse/apress-assets-table/comments{/number}","issue_comment_url":"https://api.github.com/repos/dontuse/apress-assets-table/issues/comments{/number}","contents_url":"https://api.github.com/repos/dontuse/apress-assets-table/contents/{+path}","compare_url":"https://api.github.com/repos/dontuse/apress-assets-table/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dontuse/apress-assets-table/merges","archive_url":"https://api.github.com/repos/dontuse/apress-assets-table/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dontuse/apress-assets-table/downloads","issues_url":"https://api.github.com/repos/dontuse/apress-assets-table/issues{/number}","pulls_url":"https://api.github.com/repos/dontuse/apress-assets-table/pulls{/number}","milestones_url":"https://api.github.com/repos/dontuse/apress-assets-table/milestones{/number}","notifications_url":"https://api.github.com/repos/dontuse/apress-assets-table/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dontuse/apress-assets-table/labels{/name}","releases_url":"https://api.github.com/repos/dontuse/apress-assets-table/releases{/id}","deployments_url":"https://api.github.com/repos/dontuse/apress-assets-table/deployments","created_at":"2017-03-15T09:37:57Z","updated_at":"2017-03-15T09:37:58Z","pushed_at":"2017-04-27T10:07:35Z","git_url":"git://github.com/dontuse/apress-assets-table.git","ssh_url":"git@github.com:dontuse/apress-assets-table.git","clone_url":"https://github.com/dontuse/apress-assets-table.git","svn_url":"https://github.com/dontuse/apress-assets-table","homepage":null,"size":2577,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"abak-press:master","ref":"master","sha":"6b15abe1947c08b667db93f481efaa9acc3d1bb1","user":{"login":"abak-press","id":1352227,"avatar_url":"https://avatars3.githubusercontent.com/u/1352227?v=3","gravatar_id":"","url":"https://api.github.com/users/abak-press","html_url":"https://github.com/abak-press","followers_url":"https://api.github.com/users/abak-press/followers","following_url":"https://api.github.com/users/abak-press/following{/other_user}","gists_url":"https://api.github.com/users/abak-press/gists{/gist_id}","starred_url":"https://api.github.com/users/abak-press/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abak-press/subscriptions","organizations_url":"https://api.github.com/users/abak-press/orgs","repos_url":"https://api.github.com/users/abak-press/repos","events_url":"https://api.github.com/users/abak-press/events{/privacy}","received_events_url":"https://api.github.com/users/abak-press/received_events","type":"Organization","site_admin":false},"repo":{"id":84040046,"name":"apress-assets-table","full_name":"abak-press/apress-assets-table","owner":{"login":"abak-press","id":1352227,"avatar_url":"https://avatars3.githubusercontent.com/u/1352227?v=3","gravatar_id":"","url":"https://api.github.com/users/abak-press","html_url":"https://github.com/abak-press","followers_url":"https://api.github.com/users/abak-press/followers","following_url":"https://api.github.com/users/abak-press/following{/other_user}","gists_url":"https://api.github.com/users/abak-press/gists{/gist_id}","starred_url":"https://api.github.com/users/abak-press/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abak-press/subscriptions","organizations_url":"https://api.github.com/users/abak-press/orgs","repos_url":"https://api.github.com/users/abak-press/repos","events_url":"https://api.github.com/users/abak-press/events{/privacy}","received_events_url":"https://api.github.com/users/abak-press/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/abak-press/apress-assets-table","description":null,"fork":false,"url":"https://api.github.com/repos/abak-press/apress-assets-table","forks_url":"https://api.github.com/repos/abak-press/apress-assets-table/forks","keys_url":"https://api.github.com/repos/abak-press/apress-assets-table/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abak-press/apress-assets-table/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abak-press/apress-assets-table/teams","hooks_url":"https://api.github.com/repos/abak-press/apress-assets-table/hooks","issue_events_url":"https://api.github.com/repos/abak-press/apress-assets-table/issues/events{/number}","events_url":"https://api.github.com/repos/abak-press/apress-assets-table/events","assignees_url":"https://api.github.com/repos/abak-press/apress-assets-table/assignees{/user}","branches_url":"https://api.github.com/repos/abak-press/apress-assets-table/branches{/branch}","tags_url":"https://api.github.com/repos/abak-press/apress-assets-table/tags","blobs_url":"https://api.github.com/repos/abak-press/apress-assets-table/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abak-press/apress-assets-table/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abak-press/apress-assets-table/git/refs{/sha}","trees_url":"https://api.github.com/repos/abak-press/apress-assets-table/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abak-press/apress-assets-table/statuses/{sha}","languages_url":"https://api.github.com/repos/abak-press/apress-assets-table/languages","stargazers_url":"https://api.github.com/repos/abak-press/apress-assets-table/stargazers","contributors_url":"https://api.github.com/repos/abak-press/apress-assets-table/contributors","subscribers_url":"https://api.github.com/repos/abak-press/apress-assets-table/subscribers","subscription_url":"https://api.github.com/repos/abak-press/apress-assets-table/subscription","commits_url":"https://api.github.com/repos/abak-press/apress-assets-table/commits{/sha}","git_commits_url":"https://api.github.com/repos/abak-press/apress-assets-table/git/commits{/sha}","comments_url":"https://api.github.com/repos/abak-press/apress-assets-table/comments{/number}","issue_comment_url":"https://api.github.com/repos/abak-press/apress-assets-table/issues/comments{/number}","contents_url":"https://api.github.com/repos/abak-press/apress-assets-table/contents/{+path}","compare_url":"https://api.github.com/repos/abak-press/apress-assets-table/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abak-press/apress-assets-table/merges","archive_url":"https://api.github.com/repos/abak-press/apress-assets-table/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abak-press/apress-assets-table/downloads","issues_url":"https://api.github.com/repos/abak-press/apress-assets-table/issues{/number}","pulls_url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls{/number}","milestones_url":"https://api.github.com/repos/abak-press/apress-assets-table/milestones{/number}","notifications_url":"https://api.github.com/repos/abak-press/apress-assets-table/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abak-press/apress-assets-table/labels{/name}","releases_url":"https://api.github.com/repos/abak-press/apress-assets-table/releases{/id}","deployments_url":"https://api.github.com/repos/abak-press/apress-assets-table/deployments","created_at":"2017-03-06T06:52:59Z","updated_at":"2017-03-15T05:19:39Z","pushed_at":"2017-04-27T10:07:37Z","git_url":"git://github.com/abak-press/apress-assets-table.git","ssh_url":"git@github.com:abak-press/apress-assets-table.git","clone_url":"https://github.com/abak-press/apress-assets-table.git","svn_url":"https://github.com/abak-press/apress-assets-table","homepage":null,"size":1838,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/35"},"html":{"href":"https://github.com/abak-press/apress-assets-table/pull/35"},"issue":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/issues/35"},"comments":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/statuses/8d85eeedf64b60ac73372dcc30733b572446586c"}}}}
{"actor":{"display_login":"Kupov"}}