Skip to content
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

Merged
merged 10 commits into from
Sep 26, 2019
Merged

Create authBar and userChip talons #1751

merged 10 commits into from
Sep 26, 2019

Conversation

sirugh
Copy link
Contributor

@sirugh sirugh commented Sep 23, 2019

No description provided.

@PWAStudioBot
Copy link
Contributor

PWAStudioBot commented Sep 23, 2019

Fails
🚫 Missing "Description" section. Please add it back, with detail.
🚫 Missing "Verification Steps" section. Please add it back, with detail.
🚫

No linked issue found. Please link a relevant open issue by adding the text "closes #<issue_number>" or including the associated JIRA ID in your PR.

Messages
📖

Access a deployed version of this PR here. Make sure to wait for the "pwa-pull-request-deploy" job to complete.

📖 DangerCI Failures related to missing labels/description/linked issues/etc will persist until the next push or next nightly build run (assuming they are fixed).

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.

Generated by 🚫 dangerJS against 69f1df9

@sirugh sirugh added the version: Patch This changeset includes backwards compatible bug fixes. label Sep 24, 2019
@supernova-at supernova-at self-assigned this Sep 24, 2019
@supernova-at supernova-at changed the title Create authBar and userChip mixins Create authBar and userChip talons Sep 24, 2019
* @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 }}
Copy link
Contributor

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

Copy link
Contributor

@supernova-at supernova-at Sep 24, 2019

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.

Copy link
Contributor Author

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}>
Copy link
Contributor

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?

Copy link
Contributor

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}
/>

@jimbo jimbo merged commit cbb990b into develop Sep 26, 2019
@jimbo jimbo deleted the rugh/mixin-authbar branch September 26, 2019 16:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
pkg:peregrine pkg:venia-ui version: Patch This changeset includes backwards compatible bug fixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants