{"action":"created","comment":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/comments/211776184","pull_request_review_id":148270888,"id":211776184,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTc3NjE4NA==","diff_hunk":"@@ -106,9 +106,10 @@ export default class SignIn extends AuthPiece {\n     }\n \n     showComponent(theme) {\n-        const { authState, hide, federated, onStateChange } = this.props;\n+        const { authState, hide = [], federated, onStateChange } = this.props;\n         if (hide && hide.includes(SignIn)) { return null; }\n-\n+        const hideSingUp = hide.some(component => component.name === 'SignUp')","path":"packages/aws-amplify-react/src/Auth/SignIn.jsx","position":8,"original_position":8,"commit_id":"3e915f0c3382c19eebdfcb04648cb44ae5ebef8e","original_commit_id":"3e915f0c3382c19eebdfcb04648cb44ae5ebef8e","user":{"login":"powerful23","id":11042868,"node_id":"MDQ6VXNlcjExMDQyODY4","avatar_url":"https://avatars1.githubusercontent.com/u/11042868?v=4","gravatar_id":"","url":"https://api.github.com/users/powerful23","html_url":"https://github.com/powerful23","followers_url":"https://api.github.com/users/powerful23/followers","following_url":"https://api.github.com/users/powerful23/following{/other_user}","gists_url":"https://api.github.com/users/powerful23/gists{/gist_id}","starred_url":"https://api.github.com/users/powerful23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powerful23/subscriptions","organizations_url":"https://api.github.com/users/powerful23/orgs","repos_url":"https://api.github.com/users/powerful23/repos","events_url":"https://api.github.com/users/powerful23/events{/privacy}","received_events_url":"https://api.github.com/users/powerful23/received_events","type":"User","site_admin":false},"body":"hideSignUp","created_at":"2018-08-21T22:10:45Z","updated_at":"2018-08-21T22:10:45Z","html_url":"https://github.com/aws-amplify/amplify-js/pull/1478#discussion_r211776184","pull_request_url":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/1478","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/comments/211776184"},"html":{"href":"https://github.com/aws-amplify/amplify-js/pull/1478#discussion_r211776184"},"pull_request":{"href":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/1478"}}},"pull_request":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/1478","id":209917261,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5OTE3MjYx","html_url":"https://github.com/aws-amplify/amplify-js/pull/1478","diff_url":"https://github.com/aws-amplify/amplify-js/pull/1478.diff","patch_url":"https://github.com/aws-amplify/amplify-js/pull/1478.patch","issue_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1478","number":1478,"state":"open","locked":false,"title":"Hide Forgot Password/Singup conditionally","user":{"login":"yuth","id":511386,"node_id":"MDQ6VXNlcjUxMTM4Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/511386?v=4","gravatar_id":"","url":"https://api.github.com/users/yuth","html_url":"https://github.com/yuth","followers_url":"https://api.github.com/users/yuth/followers","following_url":"https://api.github.com/users/yuth/following{/other_user}","gists_url":"https://api.github.com/users/yuth/gists{/gist_id}","starred_url":"https://api.github.com/users/yuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuth/subscriptions","organizations_url":"https://api.github.com/users/yuth/orgs","repos_url":"https://api.github.com/users/yuth/repos","events_url":"https://api.github.com/users/yuth/events{/privacy}","received_events_url":"https://api.github.com/users/yuth/received_events","type":"User","site_admin":false},"body":"Users can pass a list of components to withAuthenticator and it would render only the passed list. If the user does not pass SignUp or Forgot password the SignIn form will not render the links\r\nfor SignUp and Forgot password\r\n\r\n*Issue #, if available:*\r\nFixes issue #1467\r\n*Description of changes:*\r\n\r\n\r\nBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.\r\n","created_at":"2018-08-21T18:34:06Z","updated_at":"2018-08-21T22:10:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4f222f98aa42dc7e8d18d4cc1b50fc6b1847e05","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mlabieniec","id":1417045,"node_id":"MDQ6VXNlcjE0MTcwNDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1417045?v=4","gravatar_id":"","url":"https://api.github.com/users/mlabieniec","html_url":"https://github.com/mlabieniec","followers_url":"https://api.github.com/users/mlabieniec/followers","following_url":"https://api.github.com/users/mlabieniec/following{/other_user}","gists_url":"https://api.github.com/users/mlabieniec/gists{/gist_id}","starred_url":"https://api.github.com/users/mlabieniec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlabieniec/subscriptions","organizations_url":"https://api.github.com/users/mlabieniec/orgs","repos_url":"https://api.github.com/users/mlabieniec/repos","events_url":"https://api.github.com/users/mlabieniec/events{/privacy}","received_events_url":"https://api.github.com/users/mlabieniec/received_events","type":"User","site_admin":false},{"login":"jordanranz","id":3868826,"node_id":"MDQ6VXNlcjM4Njg4MjY=","avatar_url":"https://avatars1.githubusercontent.com/u/3868826?v=4","gravatar_id":"","url":"https://api.github.com/users/jordanranz","html_url":"https://github.com/jordanranz","followers_url":"https://api.github.com/users/jordanranz/followers","following_url":"https://api.github.com/users/jordanranz/following{/other_user}","gists_url":"https://api.github.com/users/jordanranz/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanranz/subscriptions","organizations_url":"https://api.github.com/users/jordanranz/orgs","repos_url":"https://api.github.com/users/jordanranz/repos","events_url":"https://api.github.com/users/jordanranz/events{/privacy}","received_events_url":"https://api.github.com/users/jordanranz/received_events","type":"User","site_admin":false},{"login":"nidsharm","id":28815212,"node_id":"MDQ6VXNlcjI4ODE1MjEy","avatar_url":"https://avatars1.githubusercontent.com/u/28815212?v=4","gravatar_id":"","url":"https://api.github.com/users/nidsharm","html_url":"https://github.com/nidsharm","followers_url":"https://api.github.com/users/nidsharm/followers","following_url":"https://api.github.com/users/nidsharm/following{/other_user}","gists_url":"https://api.github.com/users/nidsharm/gists{/gist_id}","starred_url":"https://api.github.com/users/nidsharm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nidsharm/subscriptions","organizations_url":"https://api.github.com/users/nidsharm/orgs","repos_url":"https://api.github.com/users/nidsharm/repos","events_url":"https://api.github.com/users/nidsharm/events{/privacy}","received_events_url":"https://api.github.com/users/nidsharm/received_events","type":"User","site_admin":false},{"login":"elorzafe","id":28815678,"node_id":"MDQ6VXNlcjI4ODE1Njc4","avatar_url":"https://avatars2.githubusercontent.com/u/28815678?v=4","gravatar_id":"","url":"https://api.github.com/users/elorzafe","html_url":"https://github.com/elorzafe","followers_url":"https://api.github.com/users/elorzafe/followers","following_url":"https://api.github.com/users/elorzafe/following{/other_user}","gists_url":"https://api.github.com/users/elorzafe/gists{/gist_id}","starred_url":"https://api.github.com/users/elorzafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elorzafe/subscriptions","organizations_url":"https://api.github.com/users/elorzafe/orgs","repos_url":"https://api.github.com/users/elorzafe/repos","events_url":"https://api.github.com/users/elorzafe/events{/privacy}","received_events_url":"https://api.github.com/users/elorzafe/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/1478/commits","review_comments_url":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/1478/comments","review_comment_url":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1478/comments","statuses_url":"https://api.github.com/repos/aws-amplify/amplify-js/statuses/3e915f0c3382c19eebdfcb04648cb44ae5ebef8e","head":{"label":"yuth:master","ref":"master","sha":"3e915f0c3382c19eebdfcb04648cb44ae5ebef8e","user":{"login":"yuth","id":511386,"node_id":"MDQ6VXNlcjUxMTM4Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/511386?v=4","gravatar_id":"","url":"https://api.github.com/users/yuth","html_url":"https://github.com/yuth","followers_url":"https://api.github.com/users/yuth/followers","following_url":"https://api.github.com/users/yuth/following{/other_user}","gists_url":"https://api.github.com/users/yuth/gists{/gist_id}","starred_url":"https://api.github.com/users/yuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuth/subscriptions","organizations_url":"https://api.github.com/users/yuth/orgs","repos_url":"https://api.github.com/users/yuth/repos","events_url":"https://api.github.com/users/yuth/events{/privacy}","received_events_url":"https://api.github.com/users/yuth/received_events","type":"User","site_admin":false},"repo":{"id":140898611,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA4OTg2MTE=","name":"amplify-js","full_name":"yuth/amplify-js","owner":{"login":"yuth","id":511386,"node_id":"MDQ6VXNlcjUxMTM4Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/511386?v=4","gravatar_id":"","url":"https://api.github.com/users/yuth","html_url":"https://github.com/yuth","followers_url":"https://api.github.com/users/yuth/followers","following_url":"https://api.github.com/users/yuth/following{/other_user}","gists_url":"https://api.github.com/users/yuth/gists{/gist_id}","starred_url":"https://api.github.com/users/yuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuth/subscriptions","organizations_url":"https://api.github.com/users/yuth/orgs","repos_url":"https://api.github.com/users/yuth/repos","events_url":"https://api.github.com/users/yuth/events{/privacy}","received_events_url":"https://api.github.com/users/yuth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuth/amplify-js","description":"A declarative JavaScript library for application development using cloud services.","fork":true,"url":"https://api.github.com/repos/yuth/amplify-js","forks_url":"https://api.github.com/repos/yuth/amplify-js/forks","keys_url":"https://api.github.com/repos/yuth/amplify-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuth/amplify-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuth/amplify-js/teams","hooks_url":"https://api.github.com/repos/yuth/amplify-js/hooks","issue_events_url":"https://api.github.com/repos/yuth/amplify-js/issues/events{/number}","events_url":"https://api.github.com/repos/yuth/amplify-js/events","assignees_url":"https://api.github.com/repos/yuth/amplify-js/assignees{/user}","branches_url":"https://api.github.com/repos/yuth/amplify-js/branches{/branch}","tags_url":"https://api.github.com/repos/yuth/amplify-js/tags","blobs_url":"https://api.github.com/repos/yuth/amplify-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuth/amplify-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuth/amplify-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuth/amplify-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuth/amplify-js/statuses/{sha}","languages_url":"https://api.github.com/repos/yuth/amplify-js/languages","stargazers_url":"https://api.github.com/repos/yuth/amplify-js/stargazers","contributors_url":"https://api.github.com/repos/yuth/amplify-js/contributors","subscribers_url":"https://api.github.com/repos/yuth/amplify-js/subscribers","subscription_url":"https://api.github.com/repos/yuth/amplify-js/subscription","commits_url":"https://api.github.com/repos/yuth/amplify-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuth/amplify-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuth/amplify-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuth/amplify-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuth/amplify-js/contents/{+path}","compare_url":"https://api.github.com/repos/yuth/amplify-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuth/amplify-js/merges","archive_url":"https://api.github.com/repos/yuth/amplify-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuth/amplify-js/downloads","issues_url":"https://api.github.com/repos/yuth/amplify-js/issues{/number}","pulls_url":"https://api.github.com/repos/yuth/amplify-js/pulls{/number}","milestones_url":"https://api.github.com/repos/yuth/amplify-js/milestones{/number}","notifications_url":"https://api.github.com/repos/yuth/amplify-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuth/amplify-js/labels{/name}","releases_url":"https://api.github.com/repos/yuth/amplify-js/releases{/id}","deployments_url":"https://api.github.com/repos/yuth/amplify-js/deployments","created_at":"2018-07-13T22:39:42Z","updated_at":"2018-08-21T19:44:30Z","pushed_at":"2018-08-21T19:44:28Z","git_url":"git://github.com/yuth/amplify-js.git","ssh_url":"git@github.com:yuth/amplify-js.git","clone_url":"https://github.com/yuth/amplify-js.git","svn_url":"https://github.com/yuth/amplify-js","homepage":"https://aws-amplify.github.io/amplify-js","size":103790,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aws-amplify:master","ref":"master","sha":"2ef7a4dd1a29c16a33d7784d730af4ff372826b7","user":{"login":"aws-amplify","id":41077760,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDc3NzYw","avatar_url":"https://avatars0.githubusercontent.com/u/41077760?v=4","gravatar_id":"","url":"https://api.github.com/users/aws-amplify","html_url":"https://github.com/aws-amplify","followers_url":"https://api.github.com/users/aws-amplify/followers","following_url":"https://api.github.com/users/aws-amplify/following{/other_user}","gists_url":"https://api.github.com/users/aws-amplify/gists{/gist_id}","starred_url":"https://api.github.com/users/aws-amplify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws-amplify/subscriptions","organizations_url":"https://api.github.com/users/aws-amplify/orgs","repos_url":"https://api.github.com/users/aws-amplify/repos","events_url":"https://api.github.com/users/aws-amplify/events{/privacy}","received_events_url":"https://api.github.com/users/aws-amplify/received_events","type":"Organization","site_admin":false},"repo":{"id":105590837,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU1OTA4Mzc=","name":"amplify-js","full_name":"aws-amplify/amplify-js","owner":{"login":"aws-amplify","id":41077760,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDc3NzYw","avatar_url":"https://avatars0.githubusercontent.com/u/41077760?v=4","gravatar_id":"","url":"https://api.github.com/users/aws-amplify","html_url":"https://github.com/aws-amplify","followers_url":"https://api.github.com/users/aws-amplify/followers","following_url":"https://api.github.com/users/aws-amplify/following{/other_user}","gists_url":"https://api.github.com/users/aws-amplify/gists{/gist_id}","starred_url":"https://api.github.com/users/aws-amplify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws-amplify/subscriptions","organizations_url":"https://api.github.com/users/aws-amplify/orgs","repos_url":"https://api.github.com/users/aws-amplify/repos","events_url":"https://api.github.com/users/aws-amplify/events{/privacy}","received_events_url":"https://api.github.com/users/aws-amplify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aws-amplify/amplify-js","description":"A declarative JavaScript library for application development using cloud services.","fork":false,"url":"https://api.github.com/repos/aws-amplify/amplify-js","forks_url":"https://api.github.com/repos/aws-amplify/amplify-js/forks","keys_url":"https://api.github.com/repos/aws-amplify/amplify-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aws-amplify/amplify-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aws-amplify/amplify-js/teams","hooks_url":"https://api.github.com/repos/aws-amplify/amplify-js/hooks","issue_events_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/events{/number}","events_url":"https://api.github.com/repos/aws-amplify/amplify-js/events","assignees_url":"https://api.github.com/repos/aws-amplify/amplify-js/assignees{/user}","branches_url":"https://api.github.com/repos/aws-amplify/amplify-js/branches{/branch}","tags_url":"https://api.github.com/repos/aws-amplify/amplify-js/tags","blobs_url":"https://api.github.com/repos/aws-amplify/amplify-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aws-amplify/amplify-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aws-amplify/amplify-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/aws-amplify/amplify-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aws-amplify/amplify-js/statuses/{sha}","languages_url":"https://api.github.com/repos/aws-amplify/amplify-js/languages","stargazers_url":"https://api.github.com/repos/aws-amplify/amplify-js/stargazers","contributors_url":"https://api.github.com/repos/aws-amplify/amplify-js/contributors","subscribers_url":"https://api.github.com/repos/aws-amplify/amplify-js/subscribers","subscription_url":"https://api.github.com/repos/aws-amplify/amplify-js/subscription","commits_url":"https://api.github.com/repos/aws-amplify/amplify-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/aws-amplify/amplify-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/aws-amplify/amplify-js/contents/{+path}","compare_url":"https://api.github.com/repos/aws-amplify/amplify-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aws-amplify/amplify-js/merges","archive_url":"https://api.github.com/repos/aws-amplify/amplify-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aws-amplify/amplify-js/downloads","issues_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues{/number}","pulls_url":"https://api.github.com/repos/aws-amplify/amplify-js/pulls{/number}","milestones_url":"https://api.github.com/repos/aws-amplify/amplify-js/milestones{/number}","notifications_url":"https://api.github.com/repos/aws-amplify/amplify-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aws-amplify/amplify-js/labels{/name}","releases_url":"https://api.github.com/repos/aws-amplify/amplify-js/releases{/id}","deployments_url":"https://api.github.com/repos/aws-amplify/amplify-js/deployments","created_at":"2017-10-02T22:17:14Z","updated_at":"2018-08-21T19:50:48Z","pushed_at":"2018-08-21T21:51:24Z","git_url":"git://github.com/aws-amplify/amplify-js.git","ssh_url":"git@github.com:aws-amplify/amplify-js.git","clone_url":"https://github.com/aws-amplify/amplify-js.git","svn_url":"https://github.com/aws-amplify/amplify-js","homepage":"https://aws-amplify.github.io/amplify-js","size":103814,"stargazers_count":3512,"watchers_count":3512,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":422,"mirror_url":null,"archived":false,"open_issues_count":387,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":422,"open_issues":387,"watchers":3512,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/1478"},"html":{"href":"https://github.com/aws-amplify/amplify-js/pull/1478"},"issue":{"href":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1478"},"comments":{"href":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1478/comments"},"review_comments":{"href":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/1478/comments"},"review_comment":{"href":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aws-amplify/amplify-js/pulls/1478/commits"},"statuses":{"href":"https://api.github.com/repos/aws-amplify/amplify-js/statuses/3e915f0c3382c19eebdfcb04648cb44ae5ebef8e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"powerful23"}}