2021-12-07 00:08:13 +01:00
|
|
|
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>
|
2023-01-20 20:27:46 +01:00
|
|
|
<Story id="pages-unlockpage--default-story" />
|
2021-12-07 00:08:13 +01:00
|
|
|
</Canvas>
|
|
|
|
|
2022-07-26 20:52:40 +02:00
|
|
|
## Props
|
2021-12-07 00:08:13 +01:00
|
|
|
|
2023-05-18 04:07:42 +02:00
|
|
|
{/*
|
2021-12-07 00:08:13 +01:00
|
|
|
ArgsTable doesn't work with SectionShape
|
|
|
|
<ArgsTable of={MetaMaskTranslation} />
|
2023-05-18 04:07:42 +02:00
|
|
|
*/}
|
2021-12-07 00:08:13 +01:00
|
|
|
|
|
|
|
| Name | Description |
|
|
|
|
| -------------------------- | -------------------------------------------------------------------------- |
|
|
|
|
| `history` | History router for redirect after action `object` |
|
|
|
|
| `isUnlocked` | If isUnlocked is true will redirect to most recent route in history `bool` |
|
2022-02-22 16:45:19 +01:00
|
|
|
| `onRestore` | onClick handler for "Forgot password?" link `func` |
|
2021-12-07 00:08:13 +01:00
|
|
|
| `onSubmit` | onSumbit handler when form is submitted `func` |
|
|
|
|
| `forceUpdateMetamaskState` | Force update metamask data state `func` |
|