mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Fixing broken stories (#17227)
This commit is contained in:
parent
7d77554f3b
commit
a276208891
@ -1463,6 +1463,7 @@ const state = {
|
||||
version: '0.6.0',
|
||||
},
|
||||
},
|
||||
notifications: {},
|
||||
},
|
||||
appState: {
|
||||
shouldClose: false,
|
||||
|
@ -16,6 +16,7 @@ export default {
|
||||
handleTokenSelection: { control: 'func' },
|
||||
onImport: { control: 'func' },
|
||||
onIgnoreAll: { control: 'func' },
|
||||
sortingBasedOnTokenSelection: { control: 'func' },
|
||||
},
|
||||
args: {
|
||||
tokensListDetected: {
|
||||
@ -57,6 +58,7 @@ export default {
|
||||
selected: true,
|
||||
},
|
||||
},
|
||||
sortingBasedOnTokenSelection: () => [],
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -5,10 +5,20 @@ import NewAccountCreateForm from './new-account.component';
|
||||
export default {
|
||||
title: 'Pages/CreateAccount/NewAccount',
|
||||
id: __filename,
|
||||
argTypes: {
|
||||
accounts: {
|
||||
control: 'array',
|
||||
},
|
||||
},
|
||||
args: {
|
||||
accounts: [],
|
||||
},
|
||||
};
|
||||
|
||||
export const DefaultStory = () => {
|
||||
return <NewAccountCreateForm createAccount={action('Account Created')} />;
|
||||
export const DefaultStory = (args) => {
|
||||
return (
|
||||
<NewAccountCreateForm {...args} createAccount={action('Account Created')} />
|
||||
);
|
||||
};
|
||||
|
||||
DefaultStory.storyName = 'Default';
|
||||
|
@ -31,6 +31,7 @@ export const DefaultStory = () => {
|
||||
updateSendErrors={() => undefined}
|
||||
updateSendAsset={() => undefined}
|
||||
updateTokenType={(type) => action(`Selected Token: ${type}`)()}
|
||||
sendAsset={{}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user