You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.2 KiB
28 lines
1.2 KiB
3 years ago
|
import { Story, Canvas, ArgsTable } from '@storybook/addon-docs';
|
||
|
|
||
|
import UnlockPage from '.';
|
||
|
|
||
|
# Unlock Page
|
||
|
|
||
|
Portal page for user to auth the access of their account
|
||
|
|
||
|
<Canvas>
|
||
|
<Story id="ui-pages-unlock-page-unlock-page-stories-js--default-story" />
|
||
|
</Canvas>
|
||
|
|
||
|
## Component API
|
||
|
|
||
|
<!--
|
||
|
ArgsTable doesn't work with SectionShape
|
||
|
<ArgsTable of={MetaMaskTranslation} />
|
||
|
-->
|
||
|
|
||
|
| Name | Description |
|
||
|
| -------------------------- | -------------------------------------------------------------------------- |
|
||
|
| `history` | History router for redirect after action `object` |
|
||
|
| `isUnlocked` | If isUnlocked is true will redirect to most recent route in history `bool` |
|
||
|
| `onRestore` | onClick handler for "import using Secret Recovery Phrase" link `func` |
|
||
|
| `onSubmit` | onSumbit handler when form is submitted `func` |
|
||
|
| `forceUpdateMetamaskState` | Force update metamask data state `func` |
|
||
|
| `showOptInModal` | Event handler to show metametrics modal `func` |
|