{"action":"created","comment":{"url":"https://api.github.com/repos/ewendel/redux-workshop/pulls/comments/58306703","id":58306703,"diff_hunk":"@@ -0,0 +1,41 @@\n+import React, {PropTypes} from 'react'\n+\n+import WithState from './WithState.jsx'\n+import If from './If.jsx';\n+import IfChild from './IfChild.jsx'\n+import FilterForm from '../components/FilterForm.jsx';\n+import FilterList from '../components/FilterList.jsx'\n+\n+const FilterContainer = ({state, updateState, filters, addFilterHandler, activateFilterHandler}) => {\n+    return(\n+        <div className=\"filter-container\">\n+          <h3>Filters</h3>\n+          <If condition={state.formVisibility}>\n+            <IfChild>\n+              <FilterForm onSubmit={filter => {addFilterHandler(filter); updateState({formVisibility: false});}}/>","path":"src/containers/FilterContainer.jsx","position":15,"original_position":15,"commit_id":"42d3f17b1b652072f23b74b4e4408ec2b0d91f32","original_commit_id":"42d3f17b1b652072f23b74b4e4408ec2b0d91f32","user":{"login":"ingara","id":1528825,"avatar_url":"https://avatars.githubusercontent.com/u/1528825?v=3","gravatar_id":"","url":"https://api.github.com/users/ingara","html_url":"https://github.com/ingara","followers_url":"https://api.github.com/users/ingara/followers","following_url":"https://api.github.com/users/ingara/following{/other_user}","gists_url":"https://api.github.com/users/ingara/gists{/gist_id}","starred_url":"https://api.github.com/users/ingara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ingara/subscriptions","organizations_url":"https://api.github.com/users/ingara/orgs","repos_url":"https://api.github.com/users/ingara/repos","events_url":"https://api.github.com/users/ingara/events{/privacy}","received_events_url":"https://api.github.com/users/ingara/received_events","type":"User","site_admin":false},"body":"Jeg syns det blir litt kaos å ha callbacken inline her når man har funksjons-body. Hva med å deklarere den som `handleFormSubmit` før jsx-blokka?","created_at":"2016-04-03T08:51:14Z","updated_at":"2016-04-03T08:51:14Z","html_url":"https://github.com/ewendel/redux-workshop/pull/9#discussion_r58306703","pull_request_url":"https://api.github.com/repos/ewendel/redux-workshop/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/ewendel/redux-workshop/pulls/comments/58306703"},"html":{"href":"https://github.com/ewendel/redux-workshop/pull/9#discussion_r58306703"},"pull_request":{"href":"https://api.github.com/repos/ewendel/redux-workshop/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/ewendel/redux-workshop/pulls/9","id":65061815,"html_url":"https://github.com/ewendel/redux-workshop/pull/9","diff_url":"https://github.com/ewendel/redux-workshop/pull/9.diff","patch_url":"https://github.com/ewendel/redux-workshop/pull/9.patch","issue_url":"https://api.github.com/repos/ewendel/redux-workshop/issues/9","number":9,"state":"open","locked":false,"title":"Filter form","user":{"login":"guroseter","id":11210586,"avatar_url":"https://avatars.githubusercontent.com/u/11210586?v=3","gravatar_id":"","url":"https://api.github.com/users/guroseter","html_url":"https://github.com/guroseter","followers_url":"https://api.github.com/users/guroseter/followers","following_url":"https://api.github.com/users/guroseter/following{/other_user}","gists_url":"https://api.github.com/users/guroseter/gists{/gist_id}","starred_url":"https://api.github.com/users/guroseter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guroseter/subscriptions","organizations_url":"https://api.github.com/users/guroseter/orgs","repos_url":"https://api.github.com/users/guroseter/repos","events_url":"https://api.github.com/users/guroseter/events{/privacy}","received_events_url":"https://api.github.com/users/guroseter/received_events","type":"User","site_admin":false},"body":"Created a form for adding a new filter \r\nIf a filter is set, only filtered tweets are added to the map","created_at":"2016-04-03T07:45:13Z","updated_at":"2016-04-03T08:51:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3e5901abd7d08a6d0d495902b04f2f6feb77336","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ewendel/redux-workshop/pulls/9/commits","review_comments_url":"https://api.github.com/repos/ewendel/redux-workshop/pulls/9/comments","review_comment_url":"https://api.github.com/repos/ewendel/redux-workshop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ewendel/redux-workshop/issues/9/comments","statuses_url":"https://api.github.com/repos/ewendel/redux-workshop/statuses/42d3f17b1b652072f23b74b4e4408ec2b0d91f32","head":{"label":"ewendel:filter-form","ref":"filter-form","sha":"42d3f17b1b652072f23b74b4e4408ec2b0d91f32","user":{"login":"ewendel","id":861483,"avatar_url":"https://avatars.githubusercontent.com/u/861483?v=3","gravatar_id":"","url":"https://api.github.com/users/ewendel","html_url":"https://github.com/ewendel","followers_url":"https://api.github.com/users/ewendel/followers","following_url":"https://api.github.com/users/ewendel/following{/other_user}","gists_url":"https://api.github.com/users/ewendel/gists{/gist_id}","starred_url":"https://api.github.com/users/ewendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewendel/subscriptions","organizations_url":"https://api.github.com/users/ewendel/orgs","repos_url":"https://api.github.com/users/ewendel/repos","events_url":"https://api.github.com/users/ewendel/events{/privacy}","received_events_url":"https://api.github.com/users/ewendel/received_events","type":"User","site_admin":false},"repo":{"id":53961748,"name":"redux-workshop","full_name":"ewendel/redux-workshop","owner":{"login":"ewendel","id":861483,"avatar_url":"https://avatars.githubusercontent.com/u/861483?v=3","gravatar_id":"","url":"https://api.github.com/users/ewendel","html_url":"https://github.com/ewendel","followers_url":"https://api.github.com/users/ewendel/followers","following_url":"https://api.github.com/users/ewendel/following{/other_user}","gists_url":"https://api.github.com/users/ewendel/gists{/gist_id}","starred_url":"https://api.github.com/users/ewendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewendel/subscriptions","organizations_url":"https://api.github.com/users/ewendel/orgs","repos_url":"https://api.github.com/users/ewendel/repos","events_url":"https://api.github.com/users/ewendel/events{/privacy}","received_events_url":"https://api.github.com/users/ewendel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ewendel/redux-workshop","description":"","fork":false,"url":"https://api.github.com/repos/ewendel/redux-workshop","forks_url":"https://api.github.com/repos/ewendel/redux-workshop/forks","keys_url":"https://api.github.com/repos/ewendel/redux-workshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ewendel/redux-workshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ewendel/redux-workshop/teams","hooks_url":"https://api.github.com/repos/ewendel/redux-workshop/hooks","issue_events_url":"https://api.github.com/repos/ewendel/redux-workshop/issues/events{/number}","events_url":"https://api.github.com/repos/ewendel/redux-workshop/events","assignees_url":"https://api.github.com/repos/ewendel/redux-workshop/assignees{/user}","branches_url":"https://api.github.com/repos/ewendel/redux-workshop/branches{/branch}","tags_url":"https://api.github.com/repos/ewendel/redux-workshop/tags","blobs_url":"https://api.github.com/repos/ewendel/redux-workshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ewendel/redux-workshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ewendel/redux-workshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/ewendel/redux-workshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ewendel/redux-workshop/statuses/{sha}","languages_url":"https://api.github.com/repos/ewendel/redux-workshop/languages","stargazers_url":"https://api.github.com/repos/ewendel/redux-workshop/stargazers","contributors_url":"https://api.github.com/repos/ewendel/redux-workshop/contributors","subscribers_url":"https://api.github.com/repos/ewendel/redux-workshop/subscribers","subscription_url":"https://api.github.com/repos/ewendel/redux-workshop/subscription","commits_url":"https://api.github.com/repos/ewendel/redux-workshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/ewendel/redux-workshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/ewendel/redux-workshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/ewendel/redux-workshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/ewendel/redux-workshop/contents/{+path}","compare_url":"https://api.github.com/repos/ewendel/redux-workshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ewendel/redux-workshop/merges","archive_url":"https://api.github.com/repos/ewendel/redux-workshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ewendel/redux-workshop/downloads","issues_url":"https://api.github.com/repos/ewendel/redux-workshop/issues{/number}","pulls_url":"https://api.github.com/repos/ewendel/redux-workshop/pulls{/number}","milestones_url":"https://api.github.com/repos/ewendel/redux-workshop/milestones{/number}","notifications_url":"https://api.github.com/repos/ewendel/redux-workshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ewendel/redux-workshop/labels{/name}","releases_url":"https://api.github.com/repos/ewendel/redux-workshop/releases{/id}","deployments_url":"https://api.github.com/repos/ewendel/redux-workshop/deployments","created_at":"2016-03-15T16:44:40Z","updated_at":"2016-03-16T21:09:39Z","pushed_at":"2016-04-03T07:48:11Z","git_url":"git://github.com/ewendel/redux-workshop.git","ssh_url":"git@github.com:ewendel/redux-workshop.git","clone_url":"https://github.com/ewendel/redux-workshop.git","svn_url":"https://github.com/ewendel/redux-workshop","homepage":null,"size":1622,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"ewendel:master","ref":"master","sha":"4fe3cbe0f8e2ae61228e204107531766cbda0f6a","user":{"login":"ewendel","id":861483,"avatar_url":"https://avatars.githubusercontent.com/u/861483?v=3","gravatar_id":"","url":"https://api.github.com/users/ewendel","html_url":"https://github.com/ewendel","followers_url":"https://api.github.com/users/ewendel/followers","following_url":"https://api.github.com/users/ewendel/following{/other_user}","gists_url":"https://api.github.com/users/ewendel/gists{/gist_id}","starred_url":"https://api.github.com/users/ewendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewendel/subscriptions","organizations_url":"https://api.github.com/users/ewendel/orgs","repos_url":"https://api.github.com/users/ewendel/repos","events_url":"https://api.github.com/users/ewendel/events{/privacy}","received_events_url":"https://api.github.com/users/ewendel/received_events","type":"User","site_admin":false},"repo":{"id":53961748,"name":"redux-workshop","full_name":"ewendel/redux-workshop","owner":{"login":"ewendel","id":861483,"avatar_url":"https://avatars.githubusercontent.com/u/861483?v=3","gravatar_id":"","url":"https://api.github.com/users/ewendel","html_url":"https://github.com/ewendel","followers_url":"https://api.github.com/users/ewendel/followers","following_url":"https://api.github.com/users/ewendel/following{/other_user}","gists_url":"https://api.github.com/users/ewendel/gists{/gist_id}","starred_url":"https://api.github.com/users/ewendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewendel/subscriptions","organizations_url":"https://api.github.com/users/ewendel/orgs","repos_url":"https://api.github.com/users/ewendel/repos","events_url":"https://api.github.com/users/ewendel/events{/privacy}","received_events_url":"https://api.github.com/users/ewendel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ewendel/redux-workshop","description":"","fork":false,"url":"https://api.github.com/repos/ewendel/redux-workshop","forks_url":"https://api.github.com/repos/ewendel/redux-workshop/forks","keys_url":"https://api.github.com/repos/ewendel/redux-workshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ewendel/redux-workshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ewendel/redux-workshop/teams","hooks_url":"https://api.github.com/repos/ewendel/redux-workshop/hooks","issue_events_url":"https://api.github.com/repos/ewendel/redux-workshop/issues/events{/number}","events_url":"https://api.github.com/repos/ewendel/redux-workshop/events","assignees_url":"https://api.github.com/repos/ewendel/redux-workshop/assignees{/user}","branches_url":"https://api.github.com/repos/ewendel/redux-workshop/branches{/branch}","tags_url":"https://api.github.com/repos/ewendel/redux-workshop/tags","blobs_url":"https://api.github.com/repos/ewendel/redux-workshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ewendel/redux-workshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ewendel/redux-workshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/ewendel/redux-workshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ewendel/redux-workshop/statuses/{sha}","languages_url":"https://api.github.com/repos/ewendel/redux-workshop/languages","stargazers_url":"https://api.github.com/repos/ewendel/redux-workshop/stargazers","contributors_url":"https://api.github.com/repos/ewendel/redux-workshop/contributors","subscribers_url":"https://api.github.com/repos/ewendel/redux-workshop/subscribers","subscription_url":"https://api.github.com/repos/ewendel/redux-workshop/subscription","commits_url":"https://api.github.com/repos/ewendel/redux-workshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/ewendel/redux-workshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/ewendel/redux-workshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/ewendel/redux-workshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/ewendel/redux-workshop/contents/{+path}","compare_url":"https://api.github.com/repos/ewendel/redux-workshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ewendel/redux-workshop/merges","archive_url":"https://api.github.com/repos/ewendel/redux-workshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ewendel/redux-workshop/downloads","issues_url":"https://api.github.com/repos/ewendel/redux-workshop/issues{/number}","pulls_url":"https://api.github.com/repos/ewendel/redux-workshop/pulls{/number}","milestones_url":"https://api.github.com/repos/ewendel/redux-workshop/milestones{/number}","notifications_url":"https://api.github.com/repos/ewendel/redux-workshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ewendel/redux-workshop/labels{/name}","releases_url":"https://api.github.com/repos/ewendel/redux-workshop/releases{/id}","deployments_url":"https://api.github.com/repos/ewendel/redux-workshop/deployments","created_at":"2016-03-15T16:44:40Z","updated_at":"2016-03-16T21:09:39Z","pushed_at":"2016-04-03T07:48:11Z","git_url":"git://github.com/ewendel/redux-workshop.git","ssh_url":"git@github.com:ewendel/redux-workshop.git","clone_url":"https://github.com/ewendel/redux-workshop.git","svn_url":"https://github.com/ewendel/redux-workshop","homepage":null,"size":1622,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ewendel/redux-workshop/pulls/9"},"html":{"href":"https://github.com/ewendel/redux-workshop/pull/9"},"issue":{"href":"https://api.github.com/repos/ewendel/redux-workshop/issues/9"},"comments":{"href":"https://api.github.com/repos/ewendel/redux-workshop/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/ewendel/redux-workshop/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/ewendel/redux-workshop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ewendel/redux-workshop/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/ewendel/redux-workshop/statuses/42d3f17b1b652072f23b74b4e4408ec2b0d91f32"}}}}