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:
parent
ac956c43d8
commit
73488766b6
@ -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>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user