1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/ui/pages/unlock-page
Erik Marks dbfdf3b0eb
Update Flask support links and home footer (#13226)
* Update support links for Flask

* Disable 'prefer-const' in code fence linting

* Add bespoke home footer for Flask and update logic

* fixup! Add bespoke home footer for Flask and update logic

* Fix code fence lint failure

* Fix support request link in account menu

* Fix unit test failure
2022-01-05 21:25:20 -03:30
..
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
index.scss UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
README.mdx Fix unlock-page component for new Storybook format (#12894) 2021-12-06 15:08:13 -08:00
unlock-page.component.js Update Flask support links and home footer (#13226) 2022-01-05 21:25:20 -03:30
unlock-page.component.test.js replacing seed phrase with Secret Recovery Phrase (#10994) 2021-05-07 09:07:43 -04:00
unlock-page.container.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
unlock-page.container.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
unlock-page.stories.js Fix unlock-page component for new Storybook format (#12894) 2021-12-06 15:08:13 -08: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>

## 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`                             |