mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
9fcfbe7609
* unlock-page * Updating comments and removing broken args table Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
39 lines
924 B
JavaScript
39 lines
924 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',
|
|
id: __filename,
|
|
component: UnlockPage,
|
|
parameters: {
|
|
docs: {
|
|
page: README,
|
|
},
|
|
},
|
|
argTypes: {
|
|
history: { control: 'object' },
|
|
isUnlocked: { control: 'boolean' },
|
|
onRestore: { action: 'onRestore' },
|
|
onSubmit: { action: 'onSubmit' },
|
|
forceUpdateMetamaskState: { action: 'forceUpdateMetamaskState' },
|
|
showOptInModal: { action: 'showOptInModal' },
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => {
|
|
const history = createBrowserHistory();
|
|
return <UnlockPage {...args} history={history} />;
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
DefaultStory.args = {
|
|
forceUpdateMetamaskState: () => ({
|
|
participateInMetaMetrics: true,
|
|
}),
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|