New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalize set account name popup #13603
Generalize set account name popup #13603
Conversation
…-name # Conflicts: # shared/wallets/link-existing/index.js
Note also this PR is based off of #13595, so I'd appreciate if you could review that too! |
@keybase/react-hackers |
bump |
@@ -10,7 +10,7 @@ const account = { | |||
} | |||
|
|||
const load = () => { | |||
Sb.storiesOf('Wallets/Common/Participants Row', module) | |||
Sb.storiesOf('Wallets/Common/Account Entry', module) |
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.
Think I might have been doing a little too much copy-pasting when I did this the first time
</Kb.Box2> | ||
)} | ||
<Kb.Box2 direction="vertical" style={styles.outerContainer}> | ||
{props.onBack && <Kb.HeaderHocHeader onBack={props.onBack} headerStyle={styles.header} />} |
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.
Having an onBack
prop in WalletPopup
will be useful in cases such as closing the create new account and link existing account popups when they're opened from the send form.
@@ -18,7 +18,6 @@ const common = { | |||
onDone: action('onDone'), | |||
onKeyChange: action('onKeyChange'), | |||
onNameChange: action('onNameChange'), | |||
onViewChange: action('onViewChange'), |
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.
onViewChange
wasn't being called anywhere in the LinkExisting
component; it wasn't even defined in its props.
I also added the autofocus props to the inputs in this PR, so this takes care of DESKTOP-7727 |
…-name # Conflicts: # shared/wallets/link-existing/index.js
const load = () => { | ||
Sb.storiesOf('Wallets/Common/Enter Name Popup', module) | ||
.add('Enter name', () => <EnterNamePopup {...enterNameProps} />) | ||
.add('Prefilled name', () => <EnterNamePopup {...enterNameProps} name="mikem's third account" />) |
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.
Might as well remove this + Name error
from Wallets/Link existing
since they're nearly dupes
This moves the "Name Account" popup into
wallets/common
and uses theWalletPopup
component.I'm working on another PR that uses the "Name Account" popup, so I thought I'd start by generalizing the component out of the
LinkExisting
screen.