{"action":"created","comment":{"url":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/comments/208534682","pull_request_review_id":144360893,"id":208534682,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODUzNDY4Mg==","diff_hunk":"@@ -30,32 +33,104 @@ class DocumentSelector extends Component {\n \n   handleSelect = (e, value) => {\n     e.stopPropagation()\n-\n     const { setDocumentType, nextStep } = this.props\n     setDocumentType(value)\n     nextStep()\n   }\n \n-  renderOption = (option) => {\n-    return (\n-      <div\n-        class={style.option}\n-        onClick={(e) => this.handleSelect(e, option.value)}\n-      >\n-        <div class={`${style.icon} ${style[option.icon]}`}></div>\n-        <span>{option.label}</span>\n+  renderOption = (option) => (\n+    <div\n+      class={style.option}\n+      onClick={e => this.handleSelect(e, option.value)}\n+    >\n+      <div className={`${style.icon} ${style[option.icon]}`}></div>{/*`*/}\n+      <div className={style.content}>\n+        <div className={style.optionMain}>\n+          <p className={style.label}>{option.label}</p>\n+          {option.hint &&\n+            <div className={style.hint}>{option.hint}</div>\n+          }\n+          {option.warning &&\n+            <div className={style.warning}>{option.warning}</div>\n+          }\n+        </div>\n+        {option.eStatementAccepted &&\n+          <div className={style.tag}>{\n+            this.props.i18n.t('document_selector.proof_of_address.estatements_accepted')\n+          }</div>\n+        }\n       </div>\n-    )\n-  }\n+    </div>\n+  )\n \n   render() {\n     const documentOptions = this.getOptions()\n+    const { className } = this.props\n     return (\n-      <div class={style.selector}>\n-        {documentOptions.map((op) => this.renderOption(op))}\n+      <div className={classNames(style.wrapper, className)}>\n+        {documentOptions.map(this.renderOption)}\n       </div>\n     )\n   }\n }\n \n-export default DocumentSelector;\n+const snakeCase = str => str.replace(/_/g, '-')","path":"src/components/DocumentSelector/index.js","position":105,"original_position":105,"commit_id":"f2ecdfb6e77d097f90d9d1d3119705d29763d768","original_commit_id":"f2ecdfb6e77d097f90d9d1d3119705d29763d768","user":{"login":"elhesuu","id":1504258,"node_id":"MDQ6VXNlcjE1MDQyNTg=","avatar_url":"https://avatars2.githubusercontent.com/u/1504258?v=4","gravatar_id":"","url":"https://api.github.com/users/elhesuu","html_url":"https://github.com/elhesuu","followers_url":"https://api.github.com/users/elhesuu/followers","following_url":"https://api.github.com/users/elhesuu/following{/other_user}","gists_url":"https://api.github.com/users/elhesuu/gists{/gist_id}","starred_url":"https://api.github.com/users/elhesuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elhesuu/subscriptions","organizations_url":"https://api.github.com/users/elhesuu/orgs","repos_url":"https://api.github.com/users/elhesuu/repos","events_url":"https://api.github.com/users/elhesuu/events{/privacy}","received_events_url":"https://api.github.com/users/elhesuu/received_events","type":"User","site_admin":false},"body":"@rfreitas, I named it `snakeCase`, but really I wanted to name it `kebabCase`. What do you think about `snakeToKebabCase`?","created_at":"2018-08-08T10:40:41Z","updated_at":"2018-08-08T10:40:41Z","html_url":"https://github.com/onfido/onfido-sdk-ui/pull/392#discussion_r208534682","pull_request_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/392","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/comments/208534682"},"html":{"href":"https://github.com/onfido/onfido-sdk-ui/pull/392#discussion_r208534682"},"pull_request":{"href":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/392"}},"in_reply_to_id":208516499},"pull_request":{"url":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/392","id":205564041,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NTY0MDQx","html_url":"https://github.com/onfido/onfido-sdk-ui/pull/392","diff_url":"https://github.com/onfido/onfido-sdk-ui/pull/392.diff","patch_url":"https://github.com/onfido/onfido-sdk-ui/pull/392.patch","issue_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/issues/392","number":392,"state":"open","locked":false,"title":"Feature/proof of address UK CX-2254","user":{"login":"elhesuu","id":1504258,"node_id":"MDQ6VXNlcjE1MDQyNTg=","avatar_url":"https://avatars2.githubusercontent.com/u/1504258?v=4","gravatar_id":"","url":"https://api.github.com/users/elhesuu","html_url":"https://github.com/elhesuu","followers_url":"https://api.github.com/users/elhesuu/followers","following_url":"https://api.github.com/users/elhesuu/following{/other_user}","gists_url":"https://api.github.com/users/elhesuu/gists{/gist_id}","starred_url":"https://api.github.com/users/elhesuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elhesuu/subscriptions","organizations_url":"https://api.github.com/users/elhesuu/orgs","repos_url":"https://api.github.com/users/elhesuu/repos","events_url":"https://api.github.com/users/elhesuu/events{/privacy}","received_events_url":"https://api.github.com/users/elhesuu/received_events","type":"User","site_admin":false},"body":"# Problem\r\nSelecting a document, user should see a capture screen mentioning the PoA type. Upon confirmation, the file will uploaded to the API with UK as the country and the corresponding PoA type as the document type `utility_bill`, `council_tax`, `benefits_letter`, `bank_statement`, `credit_card_statement`.\r\n\r\n# Solution\r\n- Add PoA documents to document selector\r\n- Update ID documents selector to match new design\r\n\r\n## Checklist\r\n_put `n/a` if item is not relevant to PR changes_\r\n\r\n- [n/a] Have the CHANGELOG, README, MIGRATION, RELEASE_GUIDELINES docs been updated?\r\n- [n/a] Have new automated tests been implemented?\r\n- [n/a] Have new manual tests been written down?\r\n- [x] Have tests passed locally?\r\n- [x] Have any new strings been translated?\r\n","created_at":"2018-08-01T21:52:35Z","updated_at":"2018-08-08T10:40:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c40e57bf6c58a942308a2a0c9e22bfd5b16db6c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"stefaniacardenas","id":7127427,"node_id":"MDQ6VXNlcjcxMjc0Mjc=","avatar_url":"https://avatars1.githubusercontent.com/u/7127427?v=4","gravatar_id":"","url":"https://api.github.com/users/stefaniacardenas","html_url":"https://github.com/stefaniacardenas","followers_url":"https://api.github.com/users/stefaniacardenas/followers","following_url":"https://api.github.com/users/stefaniacardenas/following{/other_user}","gists_url":"https://api.github.com/users/stefaniacardenas/gists{/gist_id}","starred_url":"https://api.github.com/users/stefaniacardenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefaniacardenas/subscriptions","organizations_url":"https://api.github.com/users/stefaniacardenas/orgs","repos_url":"https://api.github.com/users/stefaniacardenas/repos","events_url":"https://api.github.com/users/stefaniacardenas/events{/privacy}","received_events_url":"https://api.github.com/users/stefaniacardenas/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/392/commits","review_comments_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/392/comments","review_comment_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/issues/392/comments","statuses_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/statuses/f2ecdfb6e77d097f90d9d1d3119705d29763d768","head":{"label":"onfido:feature/proof-of-address-uk-cx-2058","ref":"feature/proof-of-address-uk-cx-2058","sha":"f2ecdfb6e77d097f90d9d1d3119705d29763d768","user":{"login":"onfido","id":6752448,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NTI0NDg=","avatar_url":"https://avatars3.githubusercontent.com/u/6752448?v=4","gravatar_id":"","url":"https://api.github.com/users/onfido","html_url":"https://github.com/onfido","followers_url":"https://api.github.com/users/onfido/followers","following_url":"https://api.github.com/users/onfido/following{/other_user}","gists_url":"https://api.github.com/users/onfido/gists{/gist_id}","starred_url":"https://api.github.com/users/onfido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onfido/subscriptions","organizations_url":"https://api.github.com/users/onfido/orgs","repos_url":"https://api.github.com/users/onfido/repos","events_url":"https://api.github.com/users/onfido/events{/privacy}","received_events_url":"https://api.github.com/users/onfido/received_events","type":"Organization","site_admin":false},"repo":{"id":59305266,"node_id":"MDEwOlJlcG9zaXRvcnk1OTMwNTI2Ng==","name":"onfido-sdk-ui","full_name":"onfido/onfido-sdk-ui","owner":{"login":"onfido","id":6752448,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NTI0NDg=","avatar_url":"https://avatars3.githubusercontent.com/u/6752448?v=4","gravatar_id":"","url":"https://api.github.com/users/onfido","html_url":"https://github.com/onfido","followers_url":"https://api.github.com/users/onfido/followers","following_url":"https://api.github.com/users/onfido/following{/other_user}","gists_url":"https://api.github.com/users/onfido/gists{/gist_id}","starred_url":"https://api.github.com/users/onfido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onfido/subscriptions","organizations_url":"https://api.github.com/users/onfido/orgs","repos_url":"https://api.github.com/users/onfido/repos","events_url":"https://api.github.com/users/onfido/events{/privacy}","received_events_url":"https://api.github.com/users/onfido/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/onfido/onfido-sdk-ui","description":"The Onfido SDK for Front-end JavaScript","fork":false,"url":"https://api.github.com/repos/onfido/onfido-sdk-ui","forks_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/forks","keys_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/teams","hooks_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/hooks","issue_events_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/issues/events{/number}","events_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/events","assignees_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/assignees{/user}","branches_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/branches{/branch}","tags_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/tags","blobs_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/languages","stargazers_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/stargazers","contributors_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/contributors","subscribers_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/subscribers","subscription_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/subscription","commits_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/contents/{+path}","compare_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/merges","archive_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/downloads","issues_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/issues{/number}","pulls_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/labels{/name}","releases_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/releases{/id}","deployments_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/deployments","created_at":"2016-05-20T15:25:36Z","updated_at":"2018-08-08T10:27:20Z","pushed_at":"2018-08-08T10:28:06Z","git_url":"git://github.com/onfido/onfido-sdk-ui.git","ssh_url":"git@github.com:onfido/onfido-sdk-ui.git","clone_url":"https://github.com/onfido/onfido-sdk-ui.git","svn_url":"https://github.com/onfido/onfido-sdk-ui","homepage":"","size":7294,"stargazers_count":43,"watchers_count":43,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":20,"open_issues":11,"watchers":43,"default_branch":"master"}},"base":{"label":"onfido:development","ref":"development","sha":"2b059d0208085f5c4a59fd0613f9ef76ba2f5aef","user":{"login":"onfido","id":6752448,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NTI0NDg=","avatar_url":"https://avatars3.githubusercontent.com/u/6752448?v=4","gravatar_id":"","url":"https://api.github.com/users/onfido","html_url":"https://github.com/onfido","followers_url":"https://api.github.com/users/onfido/followers","following_url":"https://api.github.com/users/onfido/following{/other_user}","gists_url":"https://api.github.com/users/onfido/gists{/gist_id}","starred_url":"https://api.github.com/users/onfido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onfido/subscriptions","organizations_url":"https://api.github.com/users/onfido/orgs","repos_url":"https://api.github.com/users/onfido/repos","events_url":"https://api.github.com/users/onfido/events{/privacy}","received_events_url":"https://api.github.com/users/onfido/received_events","type":"Organization","site_admin":false},"repo":{"id":59305266,"node_id":"MDEwOlJlcG9zaXRvcnk1OTMwNTI2Ng==","name":"onfido-sdk-ui","full_name":"onfido/onfido-sdk-ui","owner":{"login":"onfido","id":6752448,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NTI0NDg=","avatar_url":"https://avatars3.githubusercontent.com/u/6752448?v=4","gravatar_id":"","url":"https://api.github.com/users/onfido","html_url":"https://github.com/onfido","followers_url":"https://api.github.com/users/onfido/followers","following_url":"https://api.github.com/users/onfido/following{/other_user}","gists_url":"https://api.github.com/users/onfido/gists{/gist_id}","starred_url":"https://api.github.com/users/onfido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onfido/subscriptions","organizations_url":"https://api.github.com/users/onfido/orgs","repos_url":"https://api.github.com/users/onfido/repos","events_url":"https://api.github.com/users/onfido/events{/privacy}","received_events_url":"https://api.github.com/users/onfido/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/onfido/onfido-sdk-ui","description":"The Onfido SDK for Front-end JavaScript","fork":false,"url":"https://api.github.com/repos/onfido/onfido-sdk-ui","forks_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/forks","keys_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/teams","hooks_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/hooks","issue_events_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/issues/events{/number}","events_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/events","assignees_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/assignees{/user}","branches_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/branches{/branch}","tags_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/tags","blobs_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/languages","stargazers_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/stargazers","contributors_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/contributors","subscribers_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/subscribers","subscription_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/subscription","commits_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/contents/{+path}","compare_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/merges","archive_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/downloads","issues_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/issues{/number}","pulls_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/labels{/name}","releases_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/releases{/id}","deployments_url":"https://api.github.com/repos/onfido/onfido-sdk-ui/deployments","created_at":"2016-05-20T15:25:36Z","updated_at":"2018-08-08T10:27:20Z","pushed_at":"2018-08-08T10:28:06Z","git_url":"git://github.com/onfido/onfido-sdk-ui.git","ssh_url":"git@github.com:onfido/onfido-sdk-ui.git","clone_url":"https://github.com/onfido/onfido-sdk-ui.git","svn_url":"https://github.com/onfido/onfido-sdk-ui","homepage":"","size":7294,"stargazers_count":43,"watchers_count":43,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":20,"open_issues":11,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/392"},"html":{"href":"https://github.com/onfido/onfido-sdk-ui/pull/392"},"issue":{"href":"https://api.github.com/repos/onfido/onfido-sdk-ui/issues/392"},"comments":{"href":"https://api.github.com/repos/onfido/onfido-sdk-ui/issues/392/comments"},"review_comments":{"href":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/392/comments"},"review_comment":{"href":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/onfido/onfido-sdk-ui/pulls/392/commits"},"statuses":{"href":"https://api.github.com/repos/onfido/onfido-sdk-ui/statuses/f2ecdfb6e77d097f90d9d1d3119705d29763d768"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"elhesuu"}}