1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/ui/pages/unlock-page
2023-02-03 11:56:44 -06:00
..
__snapshots__
index.js
index.scss
README.mdx Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
unlock-page.component.js
unlock-page.container.js Allow background to handle forgotten password flow (#17501) 2023-02-02 10:46:22 -06:00
unlock-page.stories.js Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
unlock-page.test.js Convert actions.js to typescript (#17446) 2023-02-03 11:56:44 -06:00
unlock-page.util.js

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="pages-unlockpage--default-story" />
</Canvas>

## Props

<!--
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 "Forgot password?" 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`                             |