{"action":"created","comment":{"url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/comments/212571299","pull_request_review_id":149233917,"id":212571299,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjU3MTI5OQ==","diff_hunk":"@@ -103,23 +103,11 @@ class DashboardHome extends React.Component<Props, State> {\n     const district = event.target.id;\n \n     if (this.state.districts.includes(district)) {\n-      const flag = this.state.districts.includes(district);\n-      if (flag) {\n-        const index = this.state.districts.indexOf(district);\n-        if (index >= 0) {\n-          await this.setState((prevState, props) => {\n-            const districts = prevState.districts;\n-            districts.splice(index, 1);\n-            return { districts }\n-          });\n-        }\n-      }\n+      const districts = this.state.districts.filter(d => d != district);\n+      await this.setState({districts});\n     } else {\n-      await this.setState((prevState, props) => {\n-        const districts = prevState.districts;\n-        districts.push(district);\n-        return { districts }\n-      });\n+      const districts = [...this.state.districts, district];","path":"client-src/src/Dashboard/DashboardHome.js","position":null,"original_position":23,"commit_id":"44f1d09beb430d5f1c26158e5cf88a8083719bde","original_commit_id":"44f1d09beb430d5f1c26158e5cf88a8083719bde","user":{"login":"Mmalumbo","id":33531642,"node_id":"MDQ6VXNlcjMzNTMxNjQy","avatar_url":"https://avatars2.githubusercontent.com/u/33531642?v=4","gravatar_id":"","url":"https://api.github.com/users/Mmalumbo","html_url":"https://github.com/Mmalumbo","followers_url":"https://api.github.com/users/Mmalumbo/followers","following_url":"https://api.github.com/users/Mmalumbo/following{/other_user}","gists_url":"https://api.github.com/users/Mmalumbo/gists{/gist_id}","starred_url":"https://api.github.com/users/Mmalumbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mmalumbo/subscriptions","organizations_url":"https://api.github.com/users/Mmalumbo/orgs","repos_url":"https://api.github.com/users/Mmalumbo/repos","events_url":"https://api.github.com/users/Mmalumbo/events{/privacy}","received_events_url":"https://api.github.com/users/Mmalumbo/received_events","type":"User","site_admin":false},"body":"dope refactor.","created_at":"2018-08-24T09:27:40Z","updated_at":"2018-08-24T09:27:40Z","html_url":"https://github.com/BaobabHealthTrust/master-facility-list/pull/47#discussion_r212571299","pull_request_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/47","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/comments/212571299"},"html":{"href":"https://github.com/BaobabHealthTrust/master-facility-list/pull/47#discussion_r212571299"},"pull_request":{"href":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/47","id":210676036,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNjc2MDM2","html_url":"https://github.com/BaobabHealthTrust/master-facility-list/pull/47","diff_url":"https://github.com/BaobabHealthTrust/master-facility-list/pull/47.diff","patch_url":"https://github.com/BaobabHealthTrust/master-facility-list/pull/47.patch","issue_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/issues/47","number":47,"state":"open","locked":false,"title":"Automatically resize graphs","user":{"login":"liwoo","id":11289074,"node_id":"MDQ6VXNlcjExMjg5MDc0","avatar_url":"https://avatars1.githubusercontent.com/u/11289074?v=4","gravatar_id":"","url":"https://api.github.com/users/liwoo","html_url":"https://github.com/liwoo","followers_url":"https://api.github.com/users/liwoo/followers","following_url":"https://api.github.com/users/liwoo/following{/other_user}","gists_url":"https://api.github.com/users/liwoo/gists{/gist_id}","starred_url":"https://api.github.com/users/liwoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liwoo/subscriptions","organizations_url":"https://api.github.com/users/liwoo/orgs","repos_url":"https://api.github.com/users/liwoo/repos","events_url":"https://api.github.com/users/liwoo/events{/privacy}","received_events_url":"https://api.github.com/users/liwoo/received_events","type":"User","site_admin":false},"body":"I've added logic to make graphs responsive as well as resize automatically.  I've also added custom Icons on the cards.  Finally, I've fixed the map height and made it stick as you scroll.  This fixes #46 ","created_at":"2018-08-24T08:42:48Z","updated_at":"2018-08-24T09:27:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b3515b1b3eb0e232c9f2fd024dc7099e6d8fc52","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/47/commits","review_comments_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/47/comments","review_comment_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/issues/47/comments","statuses_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/statuses/44f1d09beb430d5f1c26158e5cf88a8083719bde","head":{"label":"BaobabHealthTrust:automatically-resize-graphs","ref":"automatically-resize-graphs","sha":"44f1d09beb430d5f1c26158e5cf88a8083719bde","user":{"login":"BaobabHealthTrust","id":395585,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NTU4NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/395585?v=4","gravatar_id":"","url":"https://api.github.com/users/BaobabHealthTrust","html_url":"https://github.com/BaobabHealthTrust","followers_url":"https://api.github.com/users/BaobabHealthTrust/followers","following_url":"https://api.github.com/users/BaobabHealthTrust/following{/other_user}","gists_url":"https://api.github.com/users/BaobabHealthTrust/gists{/gist_id}","starred_url":"https://api.github.com/users/BaobabHealthTrust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaobabHealthTrust/subscriptions","organizations_url":"https://api.github.com/users/BaobabHealthTrust/orgs","repos_url":"https://api.github.com/users/BaobabHealthTrust/repos","events_url":"https://api.github.com/users/BaobabHealthTrust/events{/privacy}","received_events_url":"https://api.github.com/users/BaobabHealthTrust/received_events","type":"Organization","site_admin":false},"repo":{"id":108085800,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgwODU4MDA=","name":"master-facility-list","full_name":"BaobabHealthTrust/master-facility-list","owner":{"login":"BaobabHealthTrust","id":395585,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NTU4NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/395585?v=4","gravatar_id":"","url":"https://api.github.com/users/BaobabHealthTrust","html_url":"https://github.com/BaobabHealthTrust","followers_url":"https://api.github.com/users/BaobabHealthTrust/followers","following_url":"https://api.github.com/users/BaobabHealthTrust/following{/other_user}","gists_url":"https://api.github.com/users/BaobabHealthTrust/gists{/gist_id}","starred_url":"https://api.github.com/users/BaobabHealthTrust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaobabHealthTrust/subscriptions","organizations_url":"https://api.github.com/users/BaobabHealthTrust/orgs","repos_url":"https://api.github.com/users/BaobabHealthTrust/repos","events_url":"https://api.github.com/users/BaobabHealthTrust/events{/privacy}","received_events_url":"https://api.github.com/users/BaobabHealthTrust/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BaobabHealthTrust/master-facility-list","description":"The main Repository for both the API and Client source of the Malawi Master Health Facility Register","fork":false,"url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list","forks_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/forks","keys_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/teams","hooks_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/hooks","issue_events_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/issues/events{/number}","events_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/events","assignees_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/assignees{/user}","branches_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/branches{/branch}","tags_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/tags","blobs_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/git/refs{/sha}","trees_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/statuses/{sha}","languages_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/languages","stargazers_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/stargazers","contributors_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/contributors","subscribers_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/subscribers","subscription_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/subscription","commits_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/commits{/sha}","git_commits_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/git/commits{/sha}","comments_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/comments{/number}","issue_comment_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/issues/comments{/number}","contents_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/contents/{+path}","compare_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/merges","archive_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/downloads","issues_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/issues{/number}","pulls_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls{/number}","milestones_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/milestones{/number}","notifications_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/labels{/name}","releases_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/releases{/id}","deployments_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/deployments","created_at":"2017-10-24T06:25:17Z","updated_at":"2018-08-10T13:59:29Z","pushed_at":"2018-08-24T08:42:48Z","git_url":"git://github.com/BaobabHealthTrust/master-facility-list.git","ssh_url":"git@github.com:BaobabHealthTrust/master-facility-list.git","clone_url":"https://github.com/BaobabHealthTrust/master-facility-list.git","svn_url":"https://github.com/BaobabHealthTrust/master-facility-list","homepage":null,"size":12779,"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":1,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":1,"open_issues":12,"watchers":1,"default_branch":"master"}},"base":{"label":"BaobabHealthTrust:master","ref":"master","sha":"72d6d6fde76ada351b77fc1d5f8f7fe611a81927","user":{"login":"BaobabHealthTrust","id":395585,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NTU4NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/395585?v=4","gravatar_id":"","url":"https://api.github.com/users/BaobabHealthTrust","html_url":"https://github.com/BaobabHealthTrust","followers_url":"https://api.github.com/users/BaobabHealthTrust/followers","following_url":"https://api.github.com/users/BaobabHealthTrust/following{/other_user}","gists_url":"https://api.github.com/users/BaobabHealthTrust/gists{/gist_id}","starred_url":"https://api.github.com/users/BaobabHealthTrust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaobabHealthTrust/subscriptions","organizations_url":"https://api.github.com/users/BaobabHealthTrust/orgs","repos_url":"https://api.github.com/users/BaobabHealthTrust/repos","events_url":"https://api.github.com/users/BaobabHealthTrust/events{/privacy}","received_events_url":"https://api.github.com/users/BaobabHealthTrust/received_events","type":"Organization","site_admin":false},"repo":{"id":108085800,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgwODU4MDA=","name":"master-facility-list","full_name":"BaobabHealthTrust/master-facility-list","owner":{"login":"BaobabHealthTrust","id":395585,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NTU4NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/395585?v=4","gravatar_id":"","url":"https://api.github.com/users/BaobabHealthTrust","html_url":"https://github.com/BaobabHealthTrust","followers_url":"https://api.github.com/users/BaobabHealthTrust/followers","following_url":"https://api.github.com/users/BaobabHealthTrust/following{/other_user}","gists_url":"https://api.github.com/users/BaobabHealthTrust/gists{/gist_id}","starred_url":"https://api.github.com/users/BaobabHealthTrust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaobabHealthTrust/subscriptions","organizations_url":"https://api.github.com/users/BaobabHealthTrust/orgs","repos_url":"https://api.github.com/users/BaobabHealthTrust/repos","events_url":"https://api.github.com/users/BaobabHealthTrust/events{/privacy}","received_events_url":"https://api.github.com/users/BaobabHealthTrust/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BaobabHealthTrust/master-facility-list","description":"The main Repository for both the API and Client source of the Malawi Master Health Facility Register","fork":false,"url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list","forks_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/forks","keys_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/teams","hooks_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/hooks","issue_events_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/issues/events{/number}","events_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/events","assignees_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/assignees{/user}","branches_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/branches{/branch}","tags_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/tags","blobs_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/git/refs{/sha}","trees_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/statuses/{sha}","languages_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/languages","stargazers_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/stargazers","contributors_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/contributors","subscribers_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/subscribers","subscription_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/subscription","commits_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/commits{/sha}","git_commits_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/git/commits{/sha}","comments_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/comments{/number}","issue_comment_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/issues/comments{/number}","contents_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/contents/{+path}","compare_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/merges","archive_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/downloads","issues_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/issues{/number}","pulls_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls{/number}","milestones_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/milestones{/number}","notifications_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/labels{/name}","releases_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/releases{/id}","deployments_url":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/deployments","created_at":"2017-10-24T06:25:17Z","updated_at":"2018-08-10T13:59:29Z","pushed_at":"2018-08-24T08:42:48Z","git_url":"git://github.com/BaobabHealthTrust/master-facility-list.git","ssh_url":"git@github.com:BaobabHealthTrust/master-facility-list.git","clone_url":"https://github.com/BaobabHealthTrust/master-facility-list.git","svn_url":"https://github.com/BaobabHealthTrust/master-facility-list","homepage":null,"size":12779,"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":1,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":1,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/47"},"html":{"href":"https://github.com/BaobabHealthTrust/master-facility-list/pull/47"},"issue":{"href":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/issues/47"},"comments":{"href":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/BaobabHealthTrust/master-facility-list/statuses/44f1d09beb430d5f1c26158e5cf88a8083719bde"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Mmalumbo"}}