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

38 lines
857 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',
component: UnlockPage,
parameters: {
docs: {
page: README,
},
},
argTypes: {
history: { control: 'object' },
isUnlocked: { control: 'boolean' },
onRestore: { action: 'onRestore' },
onSubmit: { action: 'onSubmit' },
forceUpdateMetamaskState: { action: 'forceUpdateMetamaskState' },
},
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';