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 {
title: 'Components/App/EditGasDisplay',
id: __filename,
args: {
transaction: {},
},
};
export const DefaultStory = () => {
export const DefaultStory = (args) => {
return (
<div style={{ width: '600px' }}>
<EditGasDisplay />
<EditGasDisplay {...args} />
</div>
);
};
DefaultStory.storyName = 'Default';
export const WithEducation = () => {
export const WithEducation = (args) => {
return (
<div style={{ width: '600px' }}>
<EditGasDisplay showEducationButton />
<EditGasDisplay showEducationButton {...args} />
</div>
);
};
export const WithDappSuggestedGas = () => {
export const WithDappSuggestedGas = (args) => {
return (
<div style={{ width: '600px' }}>
<EditGasDisplay
dappSuggestedGasFee="100000"
dappOrigin="davidwalsh.name"
{...args}
/>
</div>
);