mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
6cc46454c2
* UX: Remove legacy metametrics modal * Remove old localizations * Remove dead image
38 lines
857 B
JavaScript
38 lines
857 B
JavaScript
import { createBrowserHistory } from 'history';
|
|
import React from 'react';
|
|
import README from './README.mdx';
|
|
import UnlockPage from './unlock-page.component';
|
|
|
|
export default {
|
|
title: 'Pages/UnlockPage',
|
|
|
|
component: UnlockPage,
|
|
parameters: {
|
|
docs: {
|
|
page: README,
|
|
},
|
|
},
|
|
argTypes: {
|
|
history: { control: 'object' },
|
|
isUnlocked: { control: 'boolean' },
|
|
onRestore: { action: 'onRestore' },
|
|
onSubmit: { action: 'onSubmit' },
|
|
forceUpdateMetamaskState: { action: 'forceUpdateMetamaskState' },
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => {
|
|
const history = createBrowserHistory();
|
|
return <UnlockPage {...args} history={history} />;
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
DefaultStory.args = {
|
|
forceUpdateMetamaskState: () => ({
|
|
participateInMetaMetrics: true,
|
|
}),
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|