{"action":"created","comment":{"url":"https://api.github.com/repos/dhis2/ui/pulls/comments/226370481","pull_request_review_id":166177334,"id":226370481,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjM3MDQ4MQ==","diff_hunk":"@@ -0,0 +1,72 @@\n+import React from 'react'\n+import PropTypes from 'prop-types'\n+import Icon from '../Icon'\n+import s from './styles'\n+\n+class Chip extends React.PureComponent {\n+    onRemove = event => {\n+        event.stopPropagation()\n+        this.props.onRemove()\n+    }\n+\n+    renderIcon() {\n+        const { icon, type } = this.props\n+        return type === 'icon' ? (\n+            <Icon name={icon} className={s('icon')} />\n+        ) : (\n+            <img src={icon} alt=\"chip-icon\" className={s('image-icon')} />\n+        )\n+    }\n+\n+    render() {\n+        const {\n+            label,\n+            onClick,\n+            selected,\n+            disabled,\n+            dragging,\n+            icon,\n+        } = this.props\n+\n+        return (\n+            <div\n+                className={s('container', {\n+                    static: !onClick,\n+                    selected,\n+                    disabled,\n+                    dragging,\n+                })}\n+                onClick={(!disabled && onClick) || undefined}\n+            >\n+                {icon && this.renderIcon(icon)}\n+                {label && <span className={s('label')}>{label}</span>}","path":"src/core/Chip/index.js","position":42,"original_position":42,"commit_id":"2257414a9d70e2a2c112112b6f7c11bd6b184d4d","original_commit_id":"2257414a9d70e2a2c112112b6f7c11bd6b184d4d","user":{"login":"varl","id":185449,"node_id":"MDQ6VXNlcjE4NTQ0OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/185449?v=4","gravatar_id":"","url":"https://api.github.com/users/varl","html_url":"https://github.com/varl","followers_url":"https://api.github.com/users/varl/followers","following_url":"https://api.github.com/users/varl/following{/other_user}","gists_url":"https://api.github.com/users/varl/gists{/gist_id}","starred_url":"https://api.github.com/users/varl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varl/subscriptions","organizations_url":"https://api.github.com/users/varl/orgs","repos_url":"https://api.github.com/users/varl/repos","events_url":"https://api.github.com/users/varl/events{/privacy}","received_events_url":"https://api.github.com/users/varl/received_events","type":"User","site_admin":false},"body":"4358c7d","created_at":"2018-10-18T16:10:13Z","updated_at":"2018-10-18T16:10:13Z","html_url":"https://github.com/dhis2/ui/pull/98#discussion_r226370481","pull_request_url":"https://api.github.com/repos/dhis2/ui/pulls/98","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/dhis2/ui/pulls/comments/226370481"},"html":{"href":"https://github.com/dhis2/ui/pull/98#discussion_r226370481"},"pull_request":{"href":"https://api.github.com/repos/dhis2/ui/pulls/98"}},"in_reply_to_id":226335518},"pull_request":{"url":"https://api.github.com/repos/dhis2/ui/pulls/98","id":223847255,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzODQ3MjU1","html_url":"https://github.com/dhis2/ui/pull/98","diff_url":"https://github.com/dhis2/ui/pull/98.diff","patch_url":"https://github.com/dhis2/ui/pull/98.patch","issue_url":"https://api.github.com/repos/dhis2/ui/issues/98","number":98,"state":"open","locked":false,"title":"Chip with working demo","user":{"login":"HendrikThePendric","id":353236,"node_id":"MDQ6VXNlcjM1MzIzNg==","avatar_url":"https://avatars3.githubusercontent.com/u/353236?v=4","gravatar_id":"","url":"https://api.github.com/users/HendrikThePendric","html_url":"https://github.com/HendrikThePendric","followers_url":"https://api.github.com/users/HendrikThePendric/followers","following_url":"https://api.github.com/users/HendrikThePendric/following{/other_user}","gists_url":"https://api.github.com/users/HendrikThePendric/gists{/gist_id}","starred_url":"https://api.github.com/users/HendrikThePendric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HendrikThePendric/subscriptions","organizations_url":"https://api.github.com/users/HendrikThePendric/orgs","repos_url":"https://api.github.com/users/HendrikThePendric/repos","events_url":"https://api.github.com/users/HendrikThePendric/events{/privacy}","received_events_url":"https://api.github.com/users/HendrikThePendric/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-18T07:11:25Z","updated_at":"2018-10-18T16:10:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50a671fafb9c980eb2b4e11e9128978cad631d39","assignee":{"login":"HendrikThePendric","id":353236,"node_id":"MDQ6VXNlcjM1MzIzNg==","avatar_url":"https://avatars3.githubusercontent.com/u/353236?v=4","gravatar_id":"","url":"https://api.github.com/users/HendrikThePendric","html_url":"https://github.com/HendrikThePendric","followers_url":"https://api.github.com/users/HendrikThePendric/followers","following_url":"https://api.github.com/users/HendrikThePendric/following{/other_user}","gists_url":"https://api.github.com/users/HendrikThePendric/gists{/gist_id}","starred_url":"https://api.github.com/users/HendrikThePendric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HendrikThePendric/subscriptions","organizations_url":"https://api.github.com/users/HendrikThePendric/orgs","repos_url":"https://api.github.com/users/HendrikThePendric/repos","events_url":"https://api.github.com/users/HendrikThePendric/events{/privacy}","received_events_url":"https://api.github.com/users/HendrikThePendric/received_events","type":"User","site_admin":false},"assignees":[{"login":"HendrikThePendric","id":353236,"node_id":"MDQ6VXNlcjM1MzIzNg==","avatar_url":"https://avatars3.githubusercontent.com/u/353236?v=4","gravatar_id":"","url":"https://api.github.com/users/HendrikThePendric","html_url":"https://github.com/HendrikThePendric","followers_url":"https://api.github.com/users/HendrikThePendric/followers","following_url":"https://api.github.com/users/HendrikThePendric/following{/other_user}","gists_url":"https://api.github.com/users/HendrikThePendric/gists{/gist_id}","starred_url":"https://api.github.com/users/HendrikThePendric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HendrikThePendric/subscriptions","organizations_url":"https://api.github.com/users/HendrikThePendric/orgs","repos_url":"https://api.github.com/users/HendrikThePendric/repos","events_url":"https://api.github.com/users/HendrikThePendric/events{/privacy}","received_events_url":"https://api.github.com/users/HendrikThePendric/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dhis2/ui/pulls/98/commits","review_comments_url":"https://api.github.com/repos/dhis2/ui/pulls/98/comments","review_comment_url":"https://api.github.com/repos/dhis2/ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dhis2/ui/issues/98/comments","statuses_url":"https://api.github.com/repos/dhis2/ui/statuses/2257414a9d70e2a2c112112b6f7c11bd6b184d4d","head":{"label":"dhis2:TECH-104-Chip-in-new-structure","ref":"TECH-104-Chip-in-new-structure","sha":"2257414a9d70e2a2c112112b6f7c11bd6b184d4d","user":{"login":"dhis2","id":1089987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODk5ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/1089987?v=4","gravatar_id":"","url":"https://api.github.com/users/dhis2","html_url":"https://github.com/dhis2","followers_url":"https://api.github.com/users/dhis2/followers","following_url":"https://api.github.com/users/dhis2/following{/other_user}","gists_url":"https://api.github.com/users/dhis2/gists{/gist_id}","starred_url":"https://api.github.com/users/dhis2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhis2/subscriptions","organizations_url":"https://api.github.com/users/dhis2/orgs","repos_url":"https://api.github.com/users/dhis2/repos","events_url":"https://api.github.com/users/dhis2/events{/privacy}","received_events_url":"https://api.github.com/users/dhis2/received_events","type":"Organization","site_admin":false},"repo":{"id":139050500,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkwNTA1MDA=","name":"ui","full_name":"dhis2/ui","private":false,"owner":{"login":"dhis2","id":1089987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODk5ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/1089987?v=4","gravatar_id":"","url":"https://api.github.com/users/dhis2","html_url":"https://github.com/dhis2","followers_url":"https://api.github.com/users/dhis2/followers","following_url":"https://api.github.com/users/dhis2/following{/other_user}","gists_url":"https://api.github.com/users/dhis2/gists{/gist_id}","starred_url":"https://api.github.com/users/dhis2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhis2/subscriptions","organizations_url":"https://api.github.com/users/dhis2/orgs","repos_url":"https://api.github.com/users/dhis2/repos","events_url":"https://api.github.com/users/dhis2/events{/privacy}","received_events_url":"https://api.github.com/users/dhis2/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dhis2/ui","description":"Re-work of d2-ui","fork":false,"url":"https://api.github.com/repos/dhis2/ui","forks_url":"https://api.github.com/repos/dhis2/ui/forks","keys_url":"https://api.github.com/repos/dhis2/ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhis2/ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhis2/ui/teams","hooks_url":"https://api.github.com/repos/dhis2/ui/hooks","issue_events_url":"https://api.github.com/repos/dhis2/ui/issues/events{/number}","events_url":"https://api.github.com/repos/dhis2/ui/events","assignees_url":"https://api.github.com/repos/dhis2/ui/assignees{/user}","branches_url":"https://api.github.com/repos/dhis2/ui/branches{/branch}","tags_url":"https://api.github.com/repos/dhis2/ui/tags","blobs_url":"https://api.github.com/repos/dhis2/ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhis2/ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhis2/ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhis2/ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhis2/ui/statuses/{sha}","languages_url":"https://api.github.com/repos/dhis2/ui/languages","stargazers_url":"https://api.github.com/repos/dhis2/ui/stargazers","contributors_url":"https://api.github.com/repos/dhis2/ui/contributors","subscribers_url":"https://api.github.com/repos/dhis2/ui/subscribers","subscription_url":"https://api.github.com/repos/dhis2/ui/subscription","commits_url":"https://api.github.com/repos/dhis2/ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhis2/ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhis2/ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhis2/ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhis2/ui/contents/{+path}","compare_url":"https://api.github.com/repos/dhis2/ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhis2/ui/merges","archive_url":"https://api.github.com/repos/dhis2/ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhis2/ui/downloads","issues_url":"https://api.github.com/repos/dhis2/ui/issues{/number}","pulls_url":"https://api.github.com/repos/dhis2/ui/pulls{/number}","milestones_url":"https://api.github.com/repos/dhis2/ui/milestones{/number}","notifications_url":"https://api.github.com/repos/dhis2/ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhis2/ui/labels{/name}","releases_url":"https://api.github.com/repos/dhis2/ui/releases{/id}","deployments_url":"https://api.github.com/repos/dhis2/ui/deployments","created_at":"2018-06-28T17:43:20Z","updated_at":"2018-10-18T13:25:00Z","pushed_at":"2018-10-18T13:24:57Z","git_url":"git://github.com/dhis2/ui.git","ssh_url":"git@github.com:dhis2/ui.git","clone_url":"https://github.com/dhis2/ui.git","svn_url":"https://github.com/dhis2/ui","homepage":null,"size":3570,"stargazers_count":0,"watchers_count":0,"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":8,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"dhis2:master","ref":"master","sha":"3a2ad1ff7228936499b66acd46c1265e85cf5919","user":{"login":"dhis2","id":1089987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODk5ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/1089987?v=4","gravatar_id":"","url":"https://api.github.com/users/dhis2","html_url":"https://github.com/dhis2","followers_url":"https://api.github.com/users/dhis2/followers","following_url":"https://api.github.com/users/dhis2/following{/other_user}","gists_url":"https://api.github.com/users/dhis2/gists{/gist_id}","starred_url":"https://api.github.com/users/dhis2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhis2/subscriptions","organizations_url":"https://api.github.com/users/dhis2/orgs","repos_url":"https://api.github.com/users/dhis2/repos","events_url":"https://api.github.com/users/dhis2/events{/privacy}","received_events_url":"https://api.github.com/users/dhis2/received_events","type":"Organization","site_admin":false},"repo":{"id":139050500,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkwNTA1MDA=","name":"ui","full_name":"dhis2/ui","private":false,"owner":{"login":"dhis2","id":1089987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODk5ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/1089987?v=4","gravatar_id":"","url":"https://api.github.com/users/dhis2","html_url":"https://github.com/dhis2","followers_url":"https://api.github.com/users/dhis2/followers","following_url":"https://api.github.com/users/dhis2/following{/other_user}","gists_url":"https://api.github.com/users/dhis2/gists{/gist_id}","starred_url":"https://api.github.com/users/dhis2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhis2/subscriptions","organizations_url":"https://api.github.com/users/dhis2/orgs","repos_url":"https://api.github.com/users/dhis2/repos","events_url":"https://api.github.com/users/dhis2/events{/privacy}","received_events_url":"https://api.github.com/users/dhis2/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dhis2/ui","description":"Re-work of d2-ui","fork":false,"url":"https://api.github.com/repos/dhis2/ui","forks_url":"https://api.github.com/repos/dhis2/ui/forks","keys_url":"https://api.github.com/repos/dhis2/ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhis2/ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhis2/ui/teams","hooks_url":"https://api.github.com/repos/dhis2/ui/hooks","issue_events_url":"https://api.github.com/repos/dhis2/ui/issues/events{/number}","events_url":"https://api.github.com/repos/dhis2/ui/events","assignees_url":"https://api.github.com/repos/dhis2/ui/assignees{/user}","branches_url":"https://api.github.com/repos/dhis2/ui/branches{/branch}","tags_url":"https://api.github.com/repos/dhis2/ui/tags","blobs_url":"https://api.github.com/repos/dhis2/ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhis2/ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhis2/ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhis2/ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhis2/ui/statuses/{sha}","languages_url":"https://api.github.com/repos/dhis2/ui/languages","stargazers_url":"https://api.github.com/repos/dhis2/ui/stargazers","contributors_url":"https://api.github.com/repos/dhis2/ui/contributors","subscribers_url":"https://api.github.com/repos/dhis2/ui/subscribers","subscription_url":"https://api.github.com/repos/dhis2/ui/subscription","commits_url":"https://api.github.com/repos/dhis2/ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhis2/ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhis2/ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhis2/ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhis2/ui/contents/{+path}","compare_url":"https://api.github.com/repos/dhis2/ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhis2/ui/merges","archive_url":"https://api.github.com/repos/dhis2/ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhis2/ui/downloads","issues_url":"https://api.github.com/repos/dhis2/ui/issues{/number}","pulls_url":"https://api.github.com/repos/dhis2/ui/pulls{/number}","milestones_url":"https://api.github.com/repos/dhis2/ui/milestones{/number}","notifications_url":"https://api.github.com/repos/dhis2/ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhis2/ui/labels{/name}","releases_url":"https://api.github.com/repos/dhis2/ui/releases{/id}","deployments_url":"https://api.github.com/repos/dhis2/ui/deployments","created_at":"2018-06-28T17:43:20Z","updated_at":"2018-10-18T13:25:00Z","pushed_at":"2018-10-18T13:24:57Z","git_url":"git://github.com/dhis2/ui.git","ssh_url":"git@github.com:dhis2/ui.git","clone_url":"https://github.com/dhis2/ui.git","svn_url":"https://github.com/dhis2/ui","homepage":null,"size":3570,"stargazers_count":0,"watchers_count":0,"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":8,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dhis2/ui/pulls/98"},"html":{"href":"https://github.com/dhis2/ui/pull/98"},"issue":{"href":"https://api.github.com/repos/dhis2/ui/issues/98"},"comments":{"href":"https://api.github.com/repos/dhis2/ui/issues/98/comments"},"review_comments":{"href":"https://api.github.com/repos/dhis2/ui/pulls/98/comments"},"review_comment":{"href":"https://api.github.com/repos/dhis2/ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dhis2/ui/pulls/98/commits"},"statuses":{"href":"https://api.github.com/repos/dhis2/ui/statuses/2257414a9d70e2a2c112112b6f7c11bd6b184d4d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"varl"}}