1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

SB:EditGasDisplay: fix error (#14946)

This commit is contained in:
Ariella Vu 2022-06-15 14:55:04 -05:00 committed by GitHub
parent ac956c43d8
commit 73488766b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,32 +4,36 @@ import EditGasDisplay from '.';
export default { export default {
title: 'Components/App/EditGasDisplay', title: 'Components/App/EditGasDisplay',
id: __filename, id: __filename,
args: {
transaction: {},
},
}; };
export const DefaultStory = () => { export const DefaultStory = (args) => {
return ( return (
<div style={{ width: '600px' }}> <div style={{ width: '600px' }}>
<EditGasDisplay /> <EditGasDisplay {...args} />
</div> </div>
); );
}; };
DefaultStory.storyName = 'Default'; DefaultStory.storyName = 'Default';
export const WithEducation = () => { export const WithEducation = (args) => {
return ( return (
<div style={{ width: '600px' }}> <div style={{ width: '600px' }}>
<EditGasDisplay showEducationButton /> <EditGasDisplay showEducationButton {...args} />
</div> </div>
); );
}; };
export const WithDappSuggestedGas = () => { export const WithDappSuggestedGas = (args) => {
return ( return (
<div style={{ width: '600px' }}> <div style={{ width: '600px' }}>
<EditGasDisplay <EditGasDisplay
dappSuggestedGasFee="100000" dappSuggestedGasFee="100000"
dappOrigin="davidwalsh.name" dappOrigin="davidwalsh.name"
{...args}
/> />
</div> </div>
); );