Fix enter to create accounts
This commit is contained in:
parent
b552929b29
commit
55b9a0e7ef
2 changed files with 3 additions and 5 deletions
|
@ -935,10 +935,6 @@ export function ModalButtons({
|
|||
style
|
||||
]}
|
||||
>
|
||||
{/* Add a dummy button first so that when a user
|
||||
presses "enter" they do a normal submit, instead of
|
||||
activating the back button */}
|
||||
<Button data-hidden={true} style={{ display: 'none' }} />
|
||||
{leftContent}
|
||||
<View style={{ flex: 1 }} />
|
||||
{children}
|
||||
|
|
|
@ -143,7 +143,9 @@ function CreateLocalAccount({ modalProps, actions, history }) {
|
|||
)}
|
||||
|
||||
<ModalButtons>
|
||||
<Button onClick={() => modalProps.onBack()}>Back</Button>
|
||||
<Button onClick={() => modalProps.onBack()} type="button">
|
||||
Back
|
||||
</Button>
|
||||
<Button primary style={{ marginLeft: 10 }}>
|
||||
Create
|
||||
</Button>
|
||||
|
|
Loading…
Reference in a new issue