mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
1304ec7af5
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> |
||
---|---|---|
.. | ||
__snapshots__ | ||
index.js | ||
index.scss | ||
README.mdx | ||
unlock-page.component.js | ||
unlock-page.container.js | ||
unlock-page.stories.js | ||
unlock-page.test.js | ||
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` |