1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 23:58:06 +01:00
metamask-extension/ui/pages/unlock-page/unlock-page.stories.js

39 lines
924 B
JavaScript
Raw Normal View History

import { createBrowserHistory } from 'history';
2021-08-31 01:02:23 +02:00
import React from 'react';
import README from './README.mdx';
2021-08-31 01:02:23 +02:00
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' },
},
2021-08-31 01:02:23 +02:00
};
export const DefaultStory = (args) => {
const history = createBrowserHistory();
return <UnlockPage {...args} history={history} />;
};
DefaultStory.storyName = 'Default';
DefaultStory.args = {
forceUpdateMetamaskState: () => ({
participateInMetaMetrics: true,
}),
2021-08-31 01:02:23 +02:00
};
DefaultStory.storyName = 'Default';