-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Create authBar and userChip talons #1751
Conversation
If your PR is missing information, check against the original template here. At a minimum you must have the section headers from the template and provide some information in each section. |
* @param {function} props.showMyAccount - callback that displays my account view | ||
* @param {function} props.showSignIn - callback that displays # view | ||
|
||
* @return {{ currentUser: object, handleClick: function, isSignedIn: boolean, isSignInDisabled: boolean, showMyAccount: function }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment doesn't match what's returned from the function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this is a bit hard to read. Would be extra 🥇 if these were broken out and described like props
is above, though I'm cool with improving that later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops.
) : ( | ||
<Button disabled={!!disabled} priority="high" onClick={handleClick}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we lost the !!
for this button being disabled. Will the disabled
prop ever not be a boolean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it will always be a boolean 👍
Navigation is the only place that calls AuthBar
:
const hasModal = view !== 'MENU';
// ...
<AuthBar
disabled={hasModal}
showMyAccount={showMyAccount}
showSignIn={showSignIn}
/>
No description provided.