1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00
metamask-extension/ui/pages/unlock-page
Elliot Winkler 1304ec7af5
Convert shared/constants/metametrics to TS (#18353)
We want to convert NetworkController to TypeScript in order to be able
to compare differences in the controller between in this repo and the
core repo. To do this, however, we need to convert the dependencies of
the controller to TypeScript.

As a part of this effort, this commit converts
`shared/constants/metametrics` to TypeScript. Note that simple objects
have been largely replaced with enums. There are some cases where I even
split up some of these objects into multiple enums.

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-04-03 09:31:04 -06:00
..
__snapshots__ Continue converting tests from enzyme to @testing-library/react (#16032) 2022-10-11 12:54:50 -05:00
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
index.scss BETA - Update logo imagery (#16304) 2022-11-09 10:58:47 -06:00
README.mdx UX: Remove legacy metametrics modal (#17817) 2023-02-23 13:58:09 -06:00
unlock-page.component.js Convert shared/constants/metametrics to TS (#18353) 2023-04-03 09:31:04 -06:00
unlock-page.container.js UX: Remove legacy metametrics modal (#17817) 2023-02-23 13:58:09 -06:00
unlock-page.stories.js UX: Remove legacy metametrics modal (#17817) 2023-02-23 13:58:09 -06:00
unlock-page.test.js Convert actions.js to typescript (#17446) 2023-02-03 11:56:44 -06: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="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`                                    |