{"action":"created","comment":{"url":"https://api.github.com/repos/dat-land/dat-desktop/pulls/comments/223613339","pull_request_review_id":162778834,"id":223613339,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzYxMzMzOQ==","diff_hunk":"@@ -3,7 +3,17 @@\n import React from 'react'\n import styled from 'styled-components'\n \n-const BaseButton = styled.button`\n+const BaseButton = styled.button.attrs({\n+  onClick: props => {\n+    if (props.trigger) {\n+      return function (e) {\n+        e.stopPropagation()\n+        props.trigger.apply(this, [e])\n+      }\n+    }\n+    return undefined\n+  }","path":"app/components/button.js","position":14,"original_position":14,"commit_id":"d9f136996a525b8b37f8cb80dcf89c564acd020e","original_commit_id":"d9f136996a525b8b37f8cb80dcf89c564acd020e","user":{"login":"soyuka","id":1321971,"node_id":"MDQ6VXNlcjEzMjE5NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1321971?v=4","gravatar_id":"","url":"https://api.github.com/users/soyuka","html_url":"https://github.com/soyuka","followers_url":"https://api.github.com/users/soyuka/followers","following_url":"https://api.github.com/users/soyuka/following{/other_user}","gists_url":"https://api.github.com/users/soyuka/gists{/gist_id}","starred_url":"https://api.github.com/users/soyuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soyuka/subscriptions","organizations_url":"https://api.github.com/users/soyuka/orgs","repos_url":"https://api.github.com/users/soyuka/repos","events_url":"https://api.github.com/users/soyuka/events{/privacy}","received_events_url":"https://api.github.com/users/soyuka/received_events","type":"User","site_admin":false},"body":"I'd suggest a minor change (reverse condition + use call to avoid declaring an array):\r\n\r\n```\r\nprops => {\r\n  if (!props.trigger) return\r\n  return function (e) {\r\n      e.stopPropagation()\r\n      props.trigger.call(this, e)\r\n  }\r\n}\r\n```","created_at":"2018-10-09T08:58:01Z","updated_at":"2018-10-09T08:59:22Z","html_url":"https://github.com/dat-land/dat-desktop/pull/516#discussion_r223613339","pull_request_url":"https://api.github.com/repos/dat-land/dat-desktop/pulls/516","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/dat-land/dat-desktop/pulls/comments/223613339"},"html":{"href":"https://github.com/dat-land/dat-desktop/pull/516#discussion_r223613339"},"pull_request":{"href":"https://api.github.com/repos/dat-land/dat-desktop/pulls/516"}}},"pull_request":{"url":"https://api.github.com/repos/dat-land/dat-desktop/pulls/516","id":168938135,"node_id":"MDExOlB1bGxSZXF1ZXN0MTY4OTM4MTM1","html_url":"https://github.com/dat-land/dat-desktop/pull/516","diff_url":"https://github.com/dat-land/dat-desktop/pull/516.diff","patch_url":"https://github.com/dat-land/dat-desktop/pull/516.patch","issue_url":"https://api.github.com/repos/dat-land/dat-desktop/issues/516","number":516,"state":"open","locked":false,"title":"add/download screen","user":{"login":"aks-","id":8316625,"node_id":"MDQ6VXNlcjgzMTY2MjU=","avatar_url":"https://avatars0.githubusercontent.com/u/8316625?v=4","gravatar_id":"","url":"https://api.github.com/users/aks-","html_url":"https://github.com/aks-","followers_url":"https://api.github.com/users/aks-/followers","following_url":"https://api.github.com/users/aks-/following{/other_user}","gists_url":"https://api.github.com/users/aks-/gists{/gist_id}","starred_url":"https://api.github.com/users/aks-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aks-/subscriptions","organizations_url":"https://api.github.com/users/aks-/orgs","repos_url":"https://api.github.com/users/aks-/repos","events_url":"https://api.github.com/users/aks-/events{/privacy}","received_events_url":"https://api.github.com/users/aks-/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-13T19:43:50Z","updated_at":"2018-10-09T08:59:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1932ab7fb2d083a74f8563ccb531938c221c63c5","assignee":{"login":"AtuyL","id":176803,"node_id":"MDQ6VXNlcjE3NjgwMw==","avatar_url":"https://avatars0.githubusercontent.com/u/176803?v=4","gravatar_id":"","url":"https://api.github.com/users/AtuyL","html_url":"https://github.com/AtuyL","followers_url":"https://api.github.com/users/AtuyL/followers","following_url":"https://api.github.com/users/AtuyL/following{/other_user}","gists_url":"https://api.github.com/users/AtuyL/gists{/gist_id}","starred_url":"https://api.github.com/users/AtuyL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtuyL/subscriptions","organizations_url":"https://api.github.com/users/AtuyL/orgs","repos_url":"https://api.github.com/users/AtuyL/repos","events_url":"https://api.github.com/users/AtuyL/events{/privacy}","received_events_url":"https://api.github.com/users/AtuyL/received_events","type":"User","site_admin":false},"assignees":[{"login":"AtuyL","id":176803,"node_id":"MDQ6VXNlcjE3NjgwMw==","avatar_url":"https://avatars0.githubusercontent.com/u/176803?v=4","gravatar_id":"","url":"https://api.github.com/users/AtuyL","html_url":"https://github.com/AtuyL","followers_url":"https://api.github.com/users/AtuyL/followers","following_url":"https://api.github.com/users/AtuyL/following{/other_user}","gists_url":"https://api.github.com/users/AtuyL/gists{/gist_id}","starred_url":"https://api.github.com/users/AtuyL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtuyL/subscriptions","organizations_url":"https://api.github.com/users/AtuyL/orgs","repos_url":"https://api.github.com/users/AtuyL/repos","events_url":"https://api.github.com/users/AtuyL/events{/privacy}","received_events_url":"https://api.github.com/users/AtuyL/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"AtuyL","id":176803,"node_id":"MDQ6VXNlcjE3NjgwMw==","avatar_url":"https://avatars0.githubusercontent.com/u/176803?v=4","gravatar_id":"","url":"https://api.github.com/users/AtuyL","html_url":"https://github.com/AtuyL","followers_url":"https://api.github.com/users/AtuyL/followers","following_url":"https://api.github.com/users/AtuyL/following{/other_user}","gists_url":"https://api.github.com/users/AtuyL/gists{/gist_id}","starred_url":"https://api.github.com/users/AtuyL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtuyL/subscriptions","organizations_url":"https://api.github.com/users/AtuyL/orgs","repos_url":"https://api.github.com/users/AtuyL/repos","events_url":"https://api.github.com/users/AtuyL/events{/privacy}","received_events_url":"https://api.github.com/users/AtuyL/received_events","type":"User","site_admin":false},{"login":"martinheidegger","id":914122,"node_id":"MDQ6VXNlcjkxNDEyMg==","avatar_url":"https://avatars3.githubusercontent.com/u/914122?v=4","gravatar_id":"","url":"https://api.github.com/users/martinheidegger","html_url":"https://github.com/martinheidegger","followers_url":"https://api.github.com/users/martinheidegger/followers","following_url":"https://api.github.com/users/martinheidegger/following{/other_user}","gists_url":"https://api.github.com/users/martinheidegger/gists{/gist_id}","starred_url":"https://api.github.com/users/martinheidegger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinheidegger/subscriptions","organizations_url":"https://api.github.com/users/martinheidegger/orgs","repos_url":"https://api.github.com/users/martinheidegger/repos","events_url":"https://api.github.com/users/martinheidegger/events{/privacy}","received_events_url":"https://api.github.com/users/martinheidegger/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dat-land/dat-desktop/pulls/516/commits","review_comments_url":"https://api.github.com/repos/dat-land/dat-desktop/pulls/516/comments","review_comment_url":"https://api.github.com/repos/dat-land/dat-desktop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dat-land/dat-desktop/issues/516/comments","statuses_url":"https://api.github.com/repos/dat-land/dat-desktop/statuses/d9f136996a525b8b37f8cb80dcf89c564acd020e","head":{"label":"dat-land:add/download","ref":"add/download","sha":"d9f136996a525b8b37f8cb80dcf89c564acd020e","user":{"login":"dat-land","id":31420224,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNDIwMjI0","avatar_url":"https://avatars2.githubusercontent.com/u/31420224?v=4","gravatar_id":"","url":"https://api.github.com/users/dat-land","html_url":"https://github.com/dat-land","followers_url":"https://api.github.com/users/dat-land/followers","following_url":"https://api.github.com/users/dat-land/following{/other_user}","gists_url":"https://api.github.com/users/dat-land/gists{/gist_id}","starred_url":"https://api.github.com/users/dat-land/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dat-land/subscriptions","organizations_url":"https://api.github.com/users/dat-land/orgs","repos_url":"https://api.github.com/users/dat-land/repos","events_url":"https://api.github.com/users/dat-land/events{/privacy}","received_events_url":"https://api.github.com/users/dat-land/received_events","type":"Organization","site_admin":false},"repo":{"id":59699743,"node_id":"MDEwOlJlcG9zaXRvcnk1OTY5OTc0Mw==","name":"dat-desktop","full_name":"dat-land/dat-desktop","private":false,"owner":{"login":"dat-land","id":31420224,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNDIwMjI0","avatar_url":"https://avatars2.githubusercontent.com/u/31420224?v=4","gravatar_id":"","url":"https://api.github.com/users/dat-land","html_url":"https://github.com/dat-land","followers_url":"https://api.github.com/users/dat-land/followers","following_url":"https://api.github.com/users/dat-land/following{/other_user}","gists_url":"https://api.github.com/users/dat-land/gists{/gist_id}","starred_url":"https://api.github.com/users/dat-land/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dat-land/subscriptions","organizations_url":"https://api.github.com/users/dat-land/orgs","repos_url":"https://api.github.com/users/dat-land/repos","events_url":"https://api.github.com/users/dat-land/events{/privacy}","received_events_url":"https://api.github.com/users/dat-land/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dat-land/dat-desktop","description":"Peer to peer data sharing app built for humans","fork":false,"url":"https://api.github.com/repos/dat-land/dat-desktop","forks_url":"https://api.github.com/repos/dat-land/dat-desktop/forks","keys_url":"https://api.github.com/repos/dat-land/dat-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dat-land/dat-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dat-land/dat-desktop/teams","hooks_url":"https://api.github.com/repos/dat-land/dat-desktop/hooks","issue_events_url":"https://api.github.com/repos/dat-land/dat-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/dat-land/dat-desktop/events","assignees_url":"https://api.github.com/repos/dat-land/dat-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/dat-land/dat-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/dat-land/dat-desktop/tags","blobs_url":"https://api.github.com/repos/dat-land/dat-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dat-land/dat-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dat-land/dat-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/dat-land/dat-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dat-land/dat-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/dat-land/dat-desktop/languages","stargazers_url":"https://api.github.com/repos/dat-land/dat-desktop/stargazers","contributors_url":"https://api.github.com/repos/dat-land/dat-desktop/contributors","subscribers_url":"https://api.github.com/repos/dat-land/dat-desktop/subscribers","subscription_url":"https://api.github.com/repos/dat-land/dat-desktop/subscription","commits_url":"https://api.github.com/repos/dat-land/dat-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/dat-land/dat-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/dat-land/dat-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/dat-land/dat-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/dat-land/dat-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/dat-land/dat-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dat-land/dat-desktop/merges","archive_url":"https://api.github.com/repos/dat-land/dat-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dat-land/dat-desktop/downloads","issues_url":"https://api.github.com/repos/dat-land/dat-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/dat-land/dat-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/dat-land/dat-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/dat-land/dat-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dat-land/dat-desktop/labels{/name}","releases_url":"https://api.github.com/repos/dat-land/dat-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/dat-land/dat-desktop/deployments","created_at":"2016-05-25T21:42:53Z","updated_at":"2018-10-07T15:43:45Z","pushed_at":"2018-10-09T05:04:42Z","git_url":"git://github.com/dat-land/dat-desktop.git","ssh_url":"git@github.com:dat-land/dat-desktop.git","clone_url":"https://github.com/dat-land/dat-desktop.git","svn_url":"https://github.com/dat-land/dat-desktop","homepage":"http://datproject.org","size":2696,"stargazers_count":422,"watchers_count":422,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":61,"mirror_url":null,"archived":false,"open_issues_count":66,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":61,"open_issues":66,"watchers":422,"default_branch":"master"}},"base":{"label":"dat-land:react","ref":"react","sha":"472698a1e711b9e9e85b6f3b316d5861619ccd85","user":{"login":"dat-land","id":31420224,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNDIwMjI0","avatar_url":"https://avatars2.githubusercontent.com/u/31420224?v=4","gravatar_id":"","url":"https://api.github.com/users/dat-land","html_url":"https://github.com/dat-land","followers_url":"https://api.github.com/users/dat-land/followers","following_url":"https://api.github.com/users/dat-land/following{/other_user}","gists_url":"https://api.github.com/users/dat-land/gists{/gist_id}","starred_url":"https://api.github.com/users/dat-land/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dat-land/subscriptions","organizations_url":"https://api.github.com/users/dat-land/orgs","repos_url":"https://api.github.com/users/dat-land/repos","events_url":"https://api.github.com/users/dat-land/events{/privacy}","received_events_url":"https://api.github.com/users/dat-land/received_events","type":"Organization","site_admin":false},"repo":{"id":59699743,"node_id":"MDEwOlJlcG9zaXRvcnk1OTY5OTc0Mw==","name":"dat-desktop","full_name":"dat-land/dat-desktop","private":false,"owner":{"login":"dat-land","id":31420224,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNDIwMjI0","avatar_url":"https://avatars2.githubusercontent.com/u/31420224?v=4","gravatar_id":"","url":"https://api.github.com/users/dat-land","html_url":"https://github.com/dat-land","followers_url":"https://api.github.com/users/dat-land/followers","following_url":"https://api.github.com/users/dat-land/following{/other_user}","gists_url":"https://api.github.com/users/dat-land/gists{/gist_id}","starred_url":"https://api.github.com/users/dat-land/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dat-land/subscriptions","organizations_url":"https://api.github.com/users/dat-land/orgs","repos_url":"https://api.github.com/users/dat-land/repos","events_url":"https://api.github.com/users/dat-land/events{/privacy}","received_events_url":"https://api.github.com/users/dat-land/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dat-land/dat-desktop","description":"Peer to peer data sharing app built for humans","fork":false,"url":"https://api.github.com/repos/dat-land/dat-desktop","forks_url":"https://api.github.com/repos/dat-land/dat-desktop/forks","keys_url":"https://api.github.com/repos/dat-land/dat-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dat-land/dat-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dat-land/dat-desktop/teams","hooks_url":"https://api.github.com/repos/dat-land/dat-desktop/hooks","issue_events_url":"https://api.github.com/repos/dat-land/dat-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/dat-land/dat-desktop/events","assignees_url":"https://api.github.com/repos/dat-land/dat-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/dat-land/dat-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/dat-land/dat-desktop/tags","blobs_url":"https://api.github.com/repos/dat-land/dat-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dat-land/dat-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dat-land/dat-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/dat-land/dat-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dat-land/dat-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/dat-land/dat-desktop/languages","stargazers_url":"https://api.github.com/repos/dat-land/dat-desktop/stargazers","contributors_url":"https://api.github.com/repos/dat-land/dat-desktop/contributors","subscribers_url":"https://api.github.com/repos/dat-land/dat-desktop/subscribers","subscription_url":"https://api.github.com/repos/dat-land/dat-desktop/subscription","commits_url":"https://api.github.com/repos/dat-land/dat-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/dat-land/dat-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/dat-land/dat-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/dat-land/dat-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/dat-land/dat-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/dat-land/dat-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dat-land/dat-desktop/merges","archive_url":"https://api.github.com/repos/dat-land/dat-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dat-land/dat-desktop/downloads","issues_url":"https://api.github.com/repos/dat-land/dat-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/dat-land/dat-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/dat-land/dat-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/dat-land/dat-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dat-land/dat-desktop/labels{/name}","releases_url":"https://api.github.com/repos/dat-land/dat-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/dat-land/dat-desktop/deployments","created_at":"2016-05-25T21:42:53Z","updated_at":"2018-10-07T15:43:45Z","pushed_at":"2018-10-09T05:04:42Z","git_url":"git://github.com/dat-land/dat-desktop.git","ssh_url":"git@github.com:dat-land/dat-desktop.git","clone_url":"https://github.com/dat-land/dat-desktop.git","svn_url":"https://github.com/dat-land/dat-desktop","homepage":"http://datproject.org","size":2696,"stargazers_count":422,"watchers_count":422,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":61,"mirror_url":null,"archived":false,"open_issues_count":66,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":61,"open_issues":66,"watchers":422,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dat-land/dat-desktop/pulls/516"},"html":{"href":"https://github.com/dat-land/dat-desktop/pull/516"},"issue":{"href":"https://api.github.com/repos/dat-land/dat-desktop/issues/516"},"comments":{"href":"https://api.github.com/repos/dat-land/dat-desktop/issues/516/comments"},"review_comments":{"href":"https://api.github.com/repos/dat-land/dat-desktop/pulls/516/comments"},"review_comment":{"href":"https://api.github.com/repos/dat-land/dat-desktop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dat-land/dat-desktop/pulls/516/commits"},"statuses":{"href":"https://api.github.com/repos/dat-land/dat-desktop/statuses/d9f136996a525b8b37f8cb80dcf89c564acd020e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"soyuka"}}