A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/ui/pages/unlock-page/unlock-page.stories.js

38 lines
924 B

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';