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