1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 23:58:06 +01:00
metamask-extension/ui/pages/unlock-page
Michal 32a2411cf5
Remove textarea caret dep (#17105)
remove dependency for mascot head movement
2023-01-16 13:07:59 +00:00
..
__snapshots__ Continue converting tests from enzyme to @testing-library/react (#16032) 2022-10-11 12:54:50 -05:00
index.js
index.scss BETA - Update logo imagery (#16304) 2022-11-09 10:58:47 -06:00
README.mdx
unlock-page.component.js Remove textarea caret dep (#17105) 2023-01-16 13:07:59 +00:00
unlock-page.container.js
unlock-page.stories.js
unlock-page.test.js Remove textarea caret dep (#17105) 2023-01-16 13:07:59 +00:00
unlock-page.util.js Remove textarea caret dep (#17105) 2023-01-16 13:07:59 +00: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>
  <Story id="ui-pages-unlock-page-unlock-page-stories-js--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`                             |