{"action":"created","comment":{"url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/comments/152550349","pull_request_review_id":78428649,"id":152550349,"diff_hunk":"@@ -59,26 +59,24 @@ const Icon = styled.img`\n \n export default class extends React.Component {\n   state = {\n-    entire: false,\n-    privat: false,\n-    shared: false\n+    rooms: [\"entire\", \"privat\", \"shared\"]\n   };\n   handleCheck = check => {\n-    if (check === \"entire\") {\n-      this.setState(prevState => ({ entire: !prevState.entire }));\n-    } else if (check === \"privat\") {\n-      this.setState(prevState => ({ privat: !prevState.privat }));\n-    } else if (check === \"shared\") {\n-      this.setState(prevState => ({ shared: !prevState.shared }));\n+    let rooms = this.state.rooms;\n+    let index = rooms.indexOf(check);","path":"src/Homes/Filters/RoomType.js","position":null,"original_position":26,"commit_id":"aa8ce579df82b541bb6108fb07f78db448f871d8","original_commit_id":"aa8ce579df82b541bb6108fb07f78db448f871d8","user":{"login":"evgenyrodionov","id":775692,"avatar_url":"https://avatars1.githubusercontent.com/u/775692?v=4","gravatar_id":"","url":"https://api.github.com/users/evgenyrodionov","html_url":"https://github.com/evgenyrodionov","followers_url":"https://api.github.com/users/evgenyrodionov/followers","following_url":"https://api.github.com/users/evgenyrodionov/following{/other_user}","gists_url":"https://api.github.com/users/evgenyrodionov/gists{/gist_id}","starred_url":"https://api.github.com/users/evgenyrodionov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evgenyrodionov/subscriptions","organizations_url":"https://api.github.com/users/evgenyrodionov/orgs","repos_url":"https://api.github.com/users/evgenyrodionov/repos","events_url":"https://api.github.com/users/evgenyrodionov/events{/privacy}","received_events_url":"https://api.github.com/users/evgenyrodionov/received_events","type":"User","site_admin":false},"body":"нахуй мутабельность! используй spread operator чтобы скопировать массив и фильтр чтобы удалить что-то из него","created_at":"2017-11-22T12:33:56Z","updated_at":"2017-11-22T12:34:00Z","html_url":"https://github.com/goingtogogo/airbnb-demo-frontend/pull/3#discussion_r152550349","pull_request_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/3","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/comments/152550349"},"html":{"href":"https://github.com/goingtogogo/airbnb-demo-frontend/pull/3#discussion_r152550349"},"pull_request":{"href":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/3","id":152657319,"html_url":"https://github.com/goingtogogo/airbnb-demo-frontend/pull/3","diff_url":"https://github.com/goingtogogo/airbnb-demo-frontend/pull/3.diff","patch_url":"https://github.com/goingtogogo/airbnb-demo-frontend/pull/3.patch","issue_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/issues/3","number":3,"state":"open","locked":false,"title":"Реализация списка домов с картой","user":{"login":"goingtogogo","id":17799611,"avatar_url":"https://avatars2.githubusercontent.com/u/17799611?v=4","gravatar_id":"","url":"https://api.github.com/users/goingtogogo","html_url":"https://github.com/goingtogogo","followers_url":"https://api.github.com/users/goingtogogo/followers","following_url":"https://api.github.com/users/goingtogogo/following{/other_user}","gists_url":"https://api.github.com/users/goingtogogo/gists{/gist_id}","starred_url":"https://api.github.com/users/goingtogogo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goingtogogo/subscriptions","organizations_url":"https://api.github.com/users/goingtogogo/orgs","repos_url":"https://api.github.com/users/goingtogogo/repos","events_url":"https://api.github.com/users/goingtogogo/events{/privacy}","received_events_url":"https://api.github.com/users/goingtogogo/received_events","type":"User","site_admin":false},"body":"https://airbnb-demo-frontend-ejsxpjtvst.now.sh/\r\nhttps://airbnb-demo-frontend-ejsxpjtvst.now.sh/homes","created_at":"2017-11-15T00:44:27Z","updated_at":"2017-11-22T12:34:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b35d5190d7875b5cb6a4d417bdd0f3ef921657a1","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/3/commits","review_comments_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/3/comments","review_comment_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/issues/3/comments","statuses_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/statuses/aa8ce579df82b541bb6108fb07f78db448f871d8","head":{"label":"goingtogogo:homes","ref":"homes","sha":"aa8ce579df82b541bb6108fb07f78db448f871d8","user":{"login":"goingtogogo","id":17799611,"avatar_url":"https://avatars2.githubusercontent.com/u/17799611?v=4","gravatar_id":"","url":"https://api.github.com/users/goingtogogo","html_url":"https://github.com/goingtogogo","followers_url":"https://api.github.com/users/goingtogogo/followers","following_url":"https://api.github.com/users/goingtogogo/following{/other_user}","gists_url":"https://api.github.com/users/goingtogogo/gists{/gist_id}","starred_url":"https://api.github.com/users/goingtogogo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goingtogogo/subscriptions","organizations_url":"https://api.github.com/users/goingtogogo/orgs","repos_url":"https://api.github.com/users/goingtogogo/repos","events_url":"https://api.github.com/users/goingtogogo/events{/privacy}","received_events_url":"https://api.github.com/users/goingtogogo/received_events","type":"User","site_admin":false},"repo":{"id":109868209,"name":"airbnb-demo-frontend","full_name":"goingtogogo/airbnb-demo-frontend","owner":{"login":"goingtogogo","id":17799611,"avatar_url":"https://avatars2.githubusercontent.com/u/17799611?v=4","gravatar_id":"","url":"https://api.github.com/users/goingtogogo","html_url":"https://github.com/goingtogogo","followers_url":"https://api.github.com/users/goingtogogo/followers","following_url":"https://api.github.com/users/goingtogogo/following{/other_user}","gists_url":"https://api.github.com/users/goingtogogo/gists{/gist_id}","starred_url":"https://api.github.com/users/goingtogogo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goingtogogo/subscriptions","organizations_url":"https://api.github.com/users/goingtogogo/orgs","repos_url":"https://api.github.com/users/goingtogogo/repos","events_url":"https://api.github.com/users/goingtogogo/events{/privacy}","received_events_url":"https://api.github.com/users/goingtogogo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/goingtogogo/airbnb-demo-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend","forks_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/forks","keys_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/teams","hooks_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/hooks","issue_events_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/events","assignees_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/tags","blobs_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/languages","stargazers_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/stargazers","contributors_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/contributors","subscribers_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/subscribers","subscription_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/subscription","commits_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/merges","archive_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/downloads","issues_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/labels{/name}","releases_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/deployments","created_at":"2017-11-07T17:25:35Z","updated_at":"2017-11-14T14:40:17Z","pushed_at":"2017-11-21T14:11:01Z","git_url":"git://github.com/goingtogogo/airbnb-demo-frontend.git","ssh_url":"git@github.com:goingtogogo/airbnb-demo-frontend.git","clone_url":"https://github.com/goingtogogo/airbnb-demo-frontend.git","svn_url":"https://github.com/goingtogogo/airbnb-demo-frontend","homepage":null,"size":6234,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"goingtogogo:master","ref":"master","sha":"7181aa48a2659eb5ba46fd15dfa87739d0ad561c","user":{"login":"goingtogogo","id":17799611,"avatar_url":"https://avatars2.githubusercontent.com/u/17799611?v=4","gravatar_id":"","url":"https://api.github.com/users/goingtogogo","html_url":"https://github.com/goingtogogo","followers_url":"https://api.github.com/users/goingtogogo/followers","following_url":"https://api.github.com/users/goingtogogo/following{/other_user}","gists_url":"https://api.github.com/users/goingtogogo/gists{/gist_id}","starred_url":"https://api.github.com/users/goingtogogo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goingtogogo/subscriptions","organizations_url":"https://api.github.com/users/goingtogogo/orgs","repos_url":"https://api.github.com/users/goingtogogo/repos","events_url":"https://api.github.com/users/goingtogogo/events{/privacy}","received_events_url":"https://api.github.com/users/goingtogogo/received_events","type":"User","site_admin":false},"repo":{"id":109868209,"name":"airbnb-demo-frontend","full_name":"goingtogogo/airbnb-demo-frontend","owner":{"login":"goingtogogo","id":17799611,"avatar_url":"https://avatars2.githubusercontent.com/u/17799611?v=4","gravatar_id":"","url":"https://api.github.com/users/goingtogogo","html_url":"https://github.com/goingtogogo","followers_url":"https://api.github.com/users/goingtogogo/followers","following_url":"https://api.github.com/users/goingtogogo/following{/other_user}","gists_url":"https://api.github.com/users/goingtogogo/gists{/gist_id}","starred_url":"https://api.github.com/users/goingtogogo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goingtogogo/subscriptions","organizations_url":"https://api.github.com/users/goingtogogo/orgs","repos_url":"https://api.github.com/users/goingtogogo/repos","events_url":"https://api.github.com/users/goingtogogo/events{/privacy}","received_events_url":"https://api.github.com/users/goingtogogo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/goingtogogo/airbnb-demo-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend","forks_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/forks","keys_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/teams","hooks_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/hooks","issue_events_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/events","assignees_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/tags","blobs_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/languages","stargazers_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/stargazers","contributors_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/contributors","subscribers_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/subscribers","subscription_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/subscription","commits_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/merges","archive_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/downloads","issues_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/labels{/name}","releases_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/deployments","created_at":"2017-11-07T17:25:35Z","updated_at":"2017-11-14T14:40:17Z","pushed_at":"2017-11-21T14:11:01Z","git_url":"git://github.com/goingtogogo/airbnb-demo-frontend.git","ssh_url":"git@github.com:goingtogogo/airbnb-demo-frontend.git","clone_url":"https://github.com/goingtogogo/airbnb-demo-frontend.git","svn_url":"https://github.com/goingtogogo/airbnb-demo-frontend","homepage":null,"size":6234,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/3"},"html":{"href":"https://github.com/goingtogogo/airbnb-demo-frontend/pull/3"},"issue":{"href":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/issues/3"},"comments":{"href":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/goingtogogo/airbnb-demo-frontend/statuses/aa8ce579df82b541bb6108fb07f78db448f871d8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"evgenyrodionov"}}