{"action":"created","comment":{"url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/comments/216131149","pull_request_review_id":153554689,"id":216131149,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjEzMTE0OQ==","diff_hunk":"@@ -1,80 +1,111 @@\n import React, { Component } from 'react';\n-import { Row, Col, Input, Button, Icon } from 'react-materialize'\n-import { Link } from 'react-router-dom';\n+import { Row, Col, Button} from 'react-materialize'\n import EventMap from '../EventMap';\n-import { request, isLogged } from '../../utils';\n+import { request } from '../../utils';\n import SelectCategory from '../EventForm/SelectCategory';\n \n \n class MapLayout extends Component {\n   state = {\n     events: [],\n-    day_filter: 0,\n+    date_filter: '0',\n     category: ''\n   }\n \n+  onChangeHandlerRadio = (e) => {\n+    this.setState({ date_filter: e.currentTarget.value })\n+  };\n+\n   onChangeHandler = (e) => {\n-      let {id} = e.currentTarget\n-      this.setState({[id]: e.currentTarget.value})\n+    let { id } = e.currentTarget\n+    this.setState({ [id]: e.currentTarget.value })\n   };\n \n   filter = (e) => {\n-      let filterData = {\n-          day_filter: this.state.day_filter,\n-          category: this.state.category\n+    let filterData = {\n+      day_filter: this.state.date_filter,\n+      category: this.state.category\n+    }\n+    request('/events-short-info', 'POST', JSON.stringify(filterData)).then(data => {\n+      if ('info' in data) {\n+        this.setState({ events: data.info })\n       }\n-      request('/events-short-info', 'POST', JSON.stringify(filterData)).then(data => {\n-          if ('info' in data) {\n-              this.setState({ events: data.info })\n-          }\n-      });\n+    });\n   }\n \n   componentDidMount() {\n-      let filterData = {\n-          day_filter: this.state.day_filter\n-      }\n-      request('/events-short-info', 'POST', JSON.stringify(filterData)).then(data => {\n-          if ('info' in data) {\n-              this.setState({ events: data.info })\n-          }\n-      });\n-  }\n-\n-  renderAddEventButton() {\n-    if (isLogged()) {\n-      return (\n-        <div className=\"fixed-action-btn horizontal\">\n-          <Link className=\"btn-floating btn-large red\" to=\"/add-event\">\n-            <Icon>add</Icon>\n-          </Link>\n-        </div>\n-      )\n+    let filterData = {\n+      day_filter: this.state.date_filter,\n+      category: this.state.category\n     }\n+    request('/events-short-info', 'POST', JSON.stringify(filterData)).then(data => {\n+      if ('info' in data) {\n+        this.setState({ events: data.info })\n+      }\n+    });\n   }\n \n-  render(){\n+  render() {\n     return (\n       <Row>\n-          <Input id='day_filter' s={3} type='select' label=\"Filter by days\" defaultValue='' onChange={this.onChangeHandler}>\n-              <option value=\"\" disabled selected>Choose filter</option>\n-              <option value='1' >Today</option>\n-              <option value='7'>One week</option>\n-              <option value='14'>Two weeks</option>\n-          </Input>\n+        <Col>\n+          <p>\n+              <input\n+                     className=\"with-gap\"\n+                     name=\"group1\"\n+                     type=\"radio\"\n+                     id=\"test1\"","path":"client/src/components/MapLayout/index.jsx","position":97,"original_position":97,"commit_id":"808e04e4afb5c47fb1aad8033a313de316094931","original_commit_id":"808e04e4afb5c47fb1aad8033a313de316094931","user":{"login":"Merteg","id":18135784,"node_id":"MDQ6VXNlcjE4MTM1Nzg0","avatar_url":"https://avatars2.githubusercontent.com/u/18135784?v=4","gravatar_id":"","url":"https://api.github.com/users/Merteg","html_url":"https://github.com/Merteg","followers_url":"https://api.github.com/users/Merteg/followers","following_url":"https://api.github.com/users/Merteg/following{/other_user}","gists_url":"https://api.github.com/users/Merteg/gists{/gist_id}","starred_url":"https://api.github.com/users/Merteg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Merteg/subscriptions","organizations_url":"https://api.github.com/users/Merteg/orgs","repos_url":"https://api.github.com/users/Merteg/repos","events_url":"https://api.github.com/users/Merteg/events{/privacy}","received_events_url":"https://api.github.com/users/Merteg/received_events","type":"User","site_admin":false},"body":"maybe `radio_1` will be enough. There is no reason to type 'id' in `id` property","created_at":"2018-09-08T13:57:55Z","updated_at":"2018-09-08T13:57:55Z","html_url":"https://github.com/Social-projects-Rivne/Event.me/pull/38#discussion_r216131149","pull_request_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/38","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/comments/216131149"},"html":{"href":"https://github.com/Social-projects-Rivne/Event.me/pull/38#discussion_r216131149"},"pull_request":{"href":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/38"}},"in_reply_to_id":216126582},"pull_request":{"url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/38","id":213934048,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzOTM0MDQ4","html_url":"https://github.com/Social-projects-Rivne/Event.me/pull/38","diff_url":"https://github.com/Social-projects-Rivne/Event.me/pull/38.diff","patch_url":"https://github.com/Social-projects-Rivne/Event.me/pull/38.patch","issue_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/issues/38","number":38,"state":"open","locked":false,"title":"Feature/fix filter","user":{"login":"asstelite","id":29438669,"node_id":"MDQ6VXNlcjI5NDM4NjY5","avatar_url":"https://avatars2.githubusercontent.com/u/29438669?v=4","gravatar_id":"","url":"https://api.github.com/users/asstelite","html_url":"https://github.com/asstelite","followers_url":"https://api.github.com/users/asstelite/followers","following_url":"https://api.github.com/users/asstelite/following{/other_user}","gists_url":"https://api.github.com/users/asstelite/gists{/gist_id}","starred_url":"https://api.github.com/users/asstelite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asstelite/subscriptions","organizations_url":"https://api.github.com/users/asstelite/orgs","repos_url":"https://api.github.com/users/asstelite/repos","events_url":"https://api.github.com/users/asstelite/events{/privacy}","received_events_url":"https://api.github.com/users/asstelite/received_events","type":"User","site_admin":false},"body":"filters by drop-down and radio button","created_at":"2018-09-07T13:49:25Z","updated_at":"2018-09-08T13:57:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7556a2b8d6c5d5cba283d1906eec74b85b370d3c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/38/commits","review_comments_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/38/comments","review_comment_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/issues/38/comments","statuses_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/statuses/808e04e4afb5c47fb1aad8033a313de316094931","head":{"label":"Social-projects-Rivne:feature/fix_filter","ref":"feature/fix_filter","sha":"808e04e4afb5c47fb1aad8033a313de316094931","user":{"login":"Social-projects-Rivne","id":13674166,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjc0MTY2","avatar_url":"https://avatars3.githubusercontent.com/u/13674166?v=4","gravatar_id":"","url":"https://api.github.com/users/Social-projects-Rivne","html_url":"https://github.com/Social-projects-Rivne","followers_url":"https://api.github.com/users/Social-projects-Rivne/followers","following_url":"https://api.github.com/users/Social-projects-Rivne/following{/other_user}","gists_url":"https://api.github.com/users/Social-projects-Rivne/gists{/gist_id}","starred_url":"https://api.github.com/users/Social-projects-Rivne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Social-projects-Rivne/subscriptions","organizations_url":"https://api.github.com/users/Social-projects-Rivne/orgs","repos_url":"https://api.github.com/users/Social-projects-Rivne/repos","events_url":"https://api.github.com/users/Social-projects-Rivne/events{/privacy}","received_events_url":"https://api.github.com/users/Social-projects-Rivne/received_events","type":"Organization","site_admin":false},"repo":{"id":140434661,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA0MzQ2NjE=","name":"Event.me","full_name":"Social-projects-Rivne/Event.me","owner":{"login":"Social-projects-Rivne","id":13674166,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjc0MTY2","avatar_url":"https://avatars3.githubusercontent.com/u/13674166?v=4","gravatar_id":"","url":"https://api.github.com/users/Social-projects-Rivne","html_url":"https://github.com/Social-projects-Rivne","followers_url":"https://api.github.com/users/Social-projects-Rivne/followers","following_url":"https://api.github.com/users/Social-projects-Rivne/following{/other_user}","gists_url":"https://api.github.com/users/Social-projects-Rivne/gists{/gist_id}","starred_url":"https://api.github.com/users/Social-projects-Rivne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Social-projects-Rivne/subscriptions","organizations_url":"https://api.github.com/users/Social-projects-Rivne/orgs","repos_url":"https://api.github.com/users/Social-projects-Rivne/repos","events_url":"https://api.github.com/users/Social-projects-Rivne/events{/privacy}","received_events_url":"https://api.github.com/users/Social-projects-Rivne/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Social-projects-Rivne/Event.me","description":null,"fork":false,"url":"https://api.github.com/repos/Social-projects-Rivne/Event.me","forks_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/forks","keys_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/teams","hooks_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/hooks","issue_events_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/issues/events{/number}","events_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/events","assignees_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/assignees{/user}","branches_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/branches{/branch}","tags_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/tags","blobs_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/git/refs{/sha}","trees_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/statuses/{sha}","languages_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/languages","stargazers_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/stargazers","contributors_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/contributors","subscribers_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/subscribers","subscription_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/subscription","commits_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/commits{/sha}","git_commits_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/git/commits{/sha}","comments_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/comments{/number}","issue_comment_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/issues/comments{/number}","contents_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/contents/{+path}","compare_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/merges","archive_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/downloads","issues_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/issues{/number}","pulls_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls{/number}","milestones_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/milestones{/number}","notifications_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/labels{/name}","releases_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/releases{/id}","deployments_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/deployments","created_at":"2018-07-10T13:15:40Z","updated_at":"2018-09-03T17:07:14Z","pushed_at":"2018-09-08T09:22:11Z","git_url":"git://github.com/Social-projects-Rivne/Event.me.git","ssh_url":"git@github.com:Social-projects-Rivne/Event.me.git","clone_url":"https://github.com/Social-projects-Rivne/Event.me.git","svn_url":"https://github.com/Social-projects-Rivne/Event.me","homepage":null,"size":19301,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":1,"default_branch":"dev"}},"base":{"label":"Social-projects-Rivne:dev","ref":"dev","sha":"e00774f55b3b48507381734581e69b8151fdc36b","user":{"login":"Social-projects-Rivne","id":13674166,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjc0MTY2","avatar_url":"https://avatars3.githubusercontent.com/u/13674166?v=4","gravatar_id":"","url":"https://api.github.com/users/Social-projects-Rivne","html_url":"https://github.com/Social-projects-Rivne","followers_url":"https://api.github.com/users/Social-projects-Rivne/followers","following_url":"https://api.github.com/users/Social-projects-Rivne/following{/other_user}","gists_url":"https://api.github.com/users/Social-projects-Rivne/gists{/gist_id}","starred_url":"https://api.github.com/users/Social-projects-Rivne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Social-projects-Rivne/subscriptions","organizations_url":"https://api.github.com/users/Social-projects-Rivne/orgs","repos_url":"https://api.github.com/users/Social-projects-Rivne/repos","events_url":"https://api.github.com/users/Social-projects-Rivne/events{/privacy}","received_events_url":"https://api.github.com/users/Social-projects-Rivne/received_events","type":"Organization","site_admin":false},"repo":{"id":140434661,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA0MzQ2NjE=","name":"Event.me","full_name":"Social-projects-Rivne/Event.me","owner":{"login":"Social-projects-Rivne","id":13674166,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjc0MTY2","avatar_url":"https://avatars3.githubusercontent.com/u/13674166?v=4","gravatar_id":"","url":"https://api.github.com/users/Social-projects-Rivne","html_url":"https://github.com/Social-projects-Rivne","followers_url":"https://api.github.com/users/Social-projects-Rivne/followers","following_url":"https://api.github.com/users/Social-projects-Rivne/following{/other_user}","gists_url":"https://api.github.com/users/Social-projects-Rivne/gists{/gist_id}","starred_url":"https://api.github.com/users/Social-projects-Rivne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Social-projects-Rivne/subscriptions","organizations_url":"https://api.github.com/users/Social-projects-Rivne/orgs","repos_url":"https://api.github.com/users/Social-projects-Rivne/repos","events_url":"https://api.github.com/users/Social-projects-Rivne/events{/privacy}","received_events_url":"https://api.github.com/users/Social-projects-Rivne/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Social-projects-Rivne/Event.me","description":null,"fork":false,"url":"https://api.github.com/repos/Social-projects-Rivne/Event.me","forks_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/forks","keys_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/teams","hooks_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/hooks","issue_events_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/issues/events{/number}","events_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/events","assignees_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/assignees{/user}","branches_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/branches{/branch}","tags_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/tags","blobs_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/git/refs{/sha}","trees_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/statuses/{sha}","languages_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/languages","stargazers_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/stargazers","contributors_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/contributors","subscribers_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/subscribers","subscription_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/subscription","commits_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/commits{/sha}","git_commits_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/git/commits{/sha}","comments_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/comments{/number}","issue_comment_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/issues/comments{/number}","contents_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/contents/{+path}","compare_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/merges","archive_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/downloads","issues_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/issues{/number}","pulls_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls{/number}","milestones_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/milestones{/number}","notifications_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/labels{/name}","releases_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/releases{/id}","deployments_url":"https://api.github.com/repos/Social-projects-Rivne/Event.me/deployments","created_at":"2018-07-10T13:15:40Z","updated_at":"2018-09-03T17:07:14Z","pushed_at":"2018-09-08T09:22:11Z","git_url":"git://github.com/Social-projects-Rivne/Event.me.git","ssh_url":"git@github.com:Social-projects-Rivne/Event.me.git","clone_url":"https://github.com/Social-projects-Rivne/Event.me.git","svn_url":"https://github.com/Social-projects-Rivne/Event.me","homepage":null,"size":19301,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":1,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/38"},"html":{"href":"https://github.com/Social-projects-Rivne/Event.me/pull/38"},"issue":{"href":"https://api.github.com/repos/Social-projects-Rivne/Event.me/issues/38"},"comments":{"href":"https://api.github.com/repos/Social-projects-Rivne/Event.me/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Social-projects-Rivne/Event.me/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/Social-projects-Rivne/Event.me/statuses/808e04e4afb5c47fb1aad8033a313de316094931"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Merteg"}}