{"action":"created","comment":{"url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/comments/213173983","pull_request_review_id":149953698,"id":213173983,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzE3Mzk4Mw==","diff_hunk":"@@ -0,0 +1,62 @@\n+import React from 'react';\n+import PropTypes from 'prop-types';\n+import classnames from 'classnames';\n+import styles from './styles.scss';\n+\n+function CheckBox(\n+  {\n+    data,\n+    selected,\n+    onSelect,\n+    valueField,\n+    textField,\n+    className,\n+    ...props\n+  }\n+) {\n+  const isListObject = !!(textField && valueField);\n+  return (\n+    <div className={className}>\n+      {\n+        data.map((item, key) => {\n+          const isSelected = selected === (isListObject ? item[valueField] : item);","path":"packages/ringcentral-widgets-library/app/components/CheckBox/index.js","position":22,"original_position":22,"commit_id":"e1b30feb563c76abcf25dcab2cb2b3365cfdc141","original_commit_id":"e1b30feb563c76abcf25dcab2cb2b3365cfdc141","user":{"login":"puresmash","id":12257096,"node_id":"MDQ6VXNlcjEyMjU3MDk2","avatar_url":"https://avatars1.githubusercontent.com/u/12257096?v=4","gravatar_id":"","url":"https://api.github.com/users/puresmash","html_url":"https://github.com/puresmash","followers_url":"https://api.github.com/users/puresmash/followers","following_url":"https://api.github.com/users/puresmash/following{/other_user}","gists_url":"https://api.github.com/users/puresmash/gists{/gist_id}","starred_url":"https://api.github.com/users/puresmash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puresmash/subscriptions","organizations_url":"https://api.github.com/users/puresmash/orgs","repos_url":"https://api.github.com/users/puresmash/repos","events_url":"https://api.github.com/users/puresmash/events{/privacy}","received_events_url":"https://api.github.com/users/puresmash/received_events","type":"User","site_admin":false},"body":"Will discuss this with all you guys on meeting.","created_at":"2018-08-28T03:17:21Z","updated_at":"2018-08-28T03:17:21Z","html_url":"https://github.com/ringcentral/ringcentral-js-widgets/pull/1131#discussion_r213173983","pull_request_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/1131","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/comments/213173983"},"html":{"href":"https://github.com/ringcentral/ringcentral-js-widgets/pull/1131#discussion_r213173983"},"pull_request":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/1131"}},"in_reply_to_id":213158957},"pull_request":{"url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/1131","id":211019436,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMDE5NDM2","html_url":"https://github.com/ringcentral/ringcentral-js-widgets/pull/1131","diff_url":"https://github.com/ringcentral/ringcentral-js-widgets/pull/1131.diff","patch_url":"https://github.com/ringcentral/ringcentral-js-widgets/pull/1131.patch","issue_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/issues/1131","number":1131,"state":"open","locked":false,"title":"add button&&line&&spinner component","user":{"login":"JackZong","id":12573233,"node_id":"MDQ6VXNlcjEyNTczMjMz","avatar_url":"https://avatars3.githubusercontent.com/u/12573233?v=4","gravatar_id":"","url":"https://api.github.com/users/JackZong","html_url":"https://github.com/JackZong","followers_url":"https://api.github.com/users/JackZong/followers","following_url":"https://api.github.com/users/JackZong/following{/other_user}","gists_url":"https://api.github.com/users/JackZong/gists{/gist_id}","starred_url":"https://api.github.com/users/JackZong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackZong/subscriptions","organizations_url":"https://api.github.com/users/JackZong/orgs","repos_url":"https://api.github.com/users/JackZong/repos","events_url":"https://api.github.com/users/JackZong/events{/privacy}","received_events_url":"https://api.github.com/users/JackZong/received_events","type":"User","site_admin":false},"body":"add button&&line&&spinner component\r\nadd css module","created_at":"2018-08-27T06:43:56Z","updated_at":"2018-08-28T03:17:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1ea6b034cb5974cd332e65e233cb651bd4590f3","assignee":null,"assignees":[],"requested_reviewers":[{"login":"MicleMing","id":6770547,"node_id":"MDQ6VXNlcjY3NzA1NDc=","avatar_url":"https://avatars1.githubusercontent.com/u/6770547?v=4","gravatar_id":"","url":"https://api.github.com/users/MicleMing","html_url":"https://github.com/MicleMing","followers_url":"https://api.github.com/users/MicleMing/followers","following_url":"https://api.github.com/users/MicleMing/following{/other_user}","gists_url":"https://api.github.com/users/MicleMing/gists{/gist_id}","starred_url":"https://api.github.com/users/MicleMing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicleMing/subscriptions","organizations_url":"https://api.github.com/users/MicleMing/orgs","repos_url":"https://api.github.com/users/MicleMing/repos","events_url":"https://api.github.com/users/MicleMing/events{/privacy}","received_events_url":"https://api.github.com/users/MicleMing/received_events","type":"User","site_admin":false},{"login":"joyvinci","id":34903064,"node_id":"MDQ6VXNlcjM0OTAzMDY0","avatar_url":"https://avatars2.githubusercontent.com/u/34903064?v=4","gravatar_id":"","url":"https://api.github.com/users/joyvinci","html_url":"https://github.com/joyvinci","followers_url":"https://api.github.com/users/joyvinci/followers","following_url":"https://api.github.com/users/joyvinci/following{/other_user}","gists_url":"https://api.github.com/users/joyvinci/gists{/gist_id}","starred_url":"https://api.github.com/users/joyvinci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyvinci/subscriptions","organizations_url":"https://api.github.com/users/joyvinci/orgs","repos_url":"https://api.github.com/users/joyvinci/repos","events_url":"https://api.github.com/users/joyvinci/events{/privacy}","received_events_url":"https://api.github.com/users/joyvinci/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/1131/commits","review_comments_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/1131/comments","review_comment_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/issues/1131/comments","statuses_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/statuses/e1b30feb563c76abcf25dcab2cb2b3365cfdc141","head":{"label":"JackZong:feat/ui_lib_add_button","ref":"feat/ui_lib_add_button","sha":"e1b30feb563c76abcf25dcab2cb2b3365cfdc141","user":{"login":"JackZong","id":12573233,"node_id":"MDQ6VXNlcjEyNTczMjMz","avatar_url":"https://avatars3.githubusercontent.com/u/12573233?v=4","gravatar_id":"","url":"https://api.github.com/users/JackZong","html_url":"https://github.com/JackZong","followers_url":"https://api.github.com/users/JackZong/followers","following_url":"https://api.github.com/users/JackZong/following{/other_user}","gists_url":"https://api.github.com/users/JackZong/gists{/gist_id}","starred_url":"https://api.github.com/users/JackZong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackZong/subscriptions","organizations_url":"https://api.github.com/users/JackZong/orgs","repos_url":"https://api.github.com/users/JackZong/repos","events_url":"https://api.github.com/users/JackZong/events{/privacy}","received_events_url":"https://api.github.com/users/JackZong/received_events","type":"User","site_admin":false},"repo":{"id":138275851,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgyNzU4NTE=","name":"ringcentral-js-widgets","full_name":"JackZong/ringcentral-js-widgets","owner":{"login":"JackZong","id":12573233,"node_id":"MDQ6VXNlcjEyNTczMjMz","avatar_url":"https://avatars3.githubusercontent.com/u/12573233?v=4","gravatar_id":"","url":"https://api.github.com/users/JackZong","html_url":"https://github.com/JackZong","followers_url":"https://api.github.com/users/JackZong/followers","following_url":"https://api.github.com/users/JackZong/following{/other_user}","gists_url":"https://api.github.com/users/JackZong/gists{/gist_id}","starred_url":"https://api.github.com/users/JackZong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackZong/subscriptions","organizations_url":"https://api.github.com/users/JackZong/orgs","repos_url":"https://api.github.com/users/JackZong/repos","events_url":"https://api.github.com/users/JackZong/events{/privacy}","received_events_url":"https://api.github.com/users/JackZong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JackZong/ringcentral-js-widgets","description":"RingCentral Integration Widget Library","fork":true,"url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets","forks_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/forks","keys_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/teams","hooks_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/hooks","issue_events_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/issues/events{/number}","events_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/events","assignees_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/assignees{/user}","branches_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/branches{/branch}","tags_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/tags","blobs_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/git/refs{/sha}","trees_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/statuses/{sha}","languages_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/languages","stargazers_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/stargazers","contributors_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/contributors","subscribers_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/subscribers","subscription_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/subscription","commits_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/commits{/sha}","git_commits_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/git/commits{/sha}","comments_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/comments{/number}","issue_comment_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/issues/comments{/number}","contents_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/contents/{+path}","compare_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/merges","archive_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/downloads","issues_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/issues{/number}","pulls_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/pulls{/number}","milestones_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/milestones{/number}","notifications_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/labels{/name}","releases_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/releases{/id}","deployments_url":"https://api.github.com/repos/JackZong/ringcentral-js-widgets/deployments","created_at":"2018-06-22T08:21:06Z","updated_at":"2018-08-19T16:10:51Z","pushed_at":"2018-08-27T09:48:13Z","git_url":"git://github.com/JackZong/ringcentral-js-widgets.git","ssh_url":"git@github.com:JackZong/ringcentral-js-widgets.git","clone_url":"https://github.com/JackZong/ringcentral-js-widgets.git","svn_url":"https://github.com/JackZong/ringcentral-js-widgets","homepage":"https://ringcentral.github.io/ringcentral-js-widgets/","size":27989,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ringcentral:ui-library","ref":"ui-library","sha":"9e581f0b6f84d7b3f942ffa7e9806245472f5a2e","user":{"login":"ringcentral","id":6549285,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1NDkyODU=","avatar_url":"https://avatars3.githubusercontent.com/u/6549285?v=4","gravatar_id":"","url":"https://api.github.com/users/ringcentral","html_url":"https://github.com/ringcentral","followers_url":"https://api.github.com/users/ringcentral/followers","following_url":"https://api.github.com/users/ringcentral/following{/other_user}","gists_url":"https://api.github.com/users/ringcentral/gists{/gist_id}","starred_url":"https://api.github.com/users/ringcentral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ringcentral/subscriptions","organizations_url":"https://api.github.com/users/ringcentral/orgs","repos_url":"https://api.github.com/users/ringcentral/repos","events_url":"https://api.github.com/users/ringcentral/events{/privacy}","received_events_url":"https://api.github.com/users/ringcentral/received_events","type":"Organization","site_admin":false},"repo":{"id":58172287,"node_id":"MDEwOlJlcG9zaXRvcnk1ODE3MjI4Nw==","name":"ringcentral-js-widgets","full_name":"ringcentral/ringcentral-js-widgets","owner":{"login":"ringcentral","id":6549285,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1NDkyODU=","avatar_url":"https://avatars3.githubusercontent.com/u/6549285?v=4","gravatar_id":"","url":"https://api.github.com/users/ringcentral","html_url":"https://github.com/ringcentral","followers_url":"https://api.github.com/users/ringcentral/followers","following_url":"https://api.github.com/users/ringcentral/following{/other_user}","gists_url":"https://api.github.com/users/ringcentral/gists{/gist_id}","starred_url":"https://api.github.com/users/ringcentral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ringcentral/subscriptions","organizations_url":"https://api.github.com/users/ringcentral/orgs","repos_url":"https://api.github.com/users/ringcentral/repos","events_url":"https://api.github.com/users/ringcentral/events{/privacy}","received_events_url":"https://api.github.com/users/ringcentral/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ringcentral/ringcentral-js-widgets","description":"RingCentral Integration Widget Library","fork":false,"url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets","forks_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/forks","keys_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/teams","hooks_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/hooks","issue_events_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/issues/events{/number}","events_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/events","assignees_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/assignees{/user}","branches_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/branches{/branch}","tags_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/tags","blobs_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/git/refs{/sha}","trees_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/statuses/{sha}","languages_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/languages","stargazers_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/stargazers","contributors_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/contributors","subscribers_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/subscribers","subscription_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/subscription","commits_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/commits{/sha}","git_commits_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/git/commits{/sha}","comments_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/comments{/number}","issue_comment_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/issues/comments{/number}","contents_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/contents/{+path}","compare_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/merges","archive_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/downloads","issues_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/issues{/number}","pulls_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls{/number}","milestones_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/milestones{/number}","notifications_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/labels{/name}","releases_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/releases{/id}","deployments_url":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/deployments","created_at":"2016-05-06T01:45:07Z","updated_at":"2018-08-28T01:33:59Z","pushed_at":"2018-08-28T02:44:22Z","git_url":"git://github.com/ringcentral/ringcentral-js-widgets.git","ssh_url":"git@github.com:ringcentral/ringcentral-js-widgets.git","clone_url":"https://github.com/ringcentral/ringcentral-js-widgets.git","svn_url":"https://github.com/ringcentral/ringcentral-js-widgets","homepage":"https://ringcentral.github.io/ringcentral-js-widgets/","size":29812,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":31,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":31,"open_issues":29,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/1131"},"html":{"href":"https://github.com/ringcentral/ringcentral-js-widgets/pull/1131"},"issue":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/issues/1131"},"comments":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/issues/1131/comments"},"review_comments":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/1131/comments"},"review_comment":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/pulls/1131/commits"},"statuses":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-widgets/statuses/e1b30feb563c76abcf25dcab2cb2b3365cfdc141"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"puresmash"}}