2021-06-24 01:39:44 +02:00
|
|
|
import React from 'react';
|
|
|
|
import EditGasDisplay from '.';
|
|
|
|
|
|
|
|
export default {
|
2021-12-01 20:27:57 +01:00
|
|
|
title: 'Components/App/EditGasDisplay',
|
2021-09-15 20:55:48 +02:00
|
|
|
id: __filename,
|
2022-06-15 21:55:04 +02:00
|
|
|
args: {
|
|
|
|
transaction: {},
|
|
|
|
},
|
2021-06-24 01:39:44 +02:00
|
|
|
};
|
|
|
|
|
2022-06-15 21:55:04 +02:00
|
|
|
export const DefaultStory = (args) => {
|
2021-06-24 01:39:44 +02:00
|
|
|
return (
|
|
|
|
<div style={{ width: '600px' }}>
|
2022-06-15 21:55:04 +02:00
|
|
|
<EditGasDisplay {...args} />
|
2021-06-24 01:39:44 +02:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2021-12-01 20:27:57 +01:00
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
|
2022-06-15 21:55:04 +02:00
|
|
|
export const WithEducation = (args) => {
|
2021-06-24 01:39:44 +02:00
|
|
|
return (
|
|
|
|
<div style={{ width: '600px' }}>
|
2022-06-15 21:55:04 +02:00
|
|
|
<EditGasDisplay showEducationButton {...args} />
|
2021-06-24 01:39:44 +02:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
2021-07-01 16:36:48 +02:00
|
|
|
|
2022-06-15 21:55:04 +02:00
|
|
|
export const WithDappSuggestedGas = (args) => {
|
2021-07-01 16:36:48 +02:00
|
|
|
return (
|
|
|
|
<div style={{ width: '600px' }}>
|
|
|
|
<EditGasDisplay
|
|
|
|
dappSuggestedGasFee="100000"
|
|
|
|
dappOrigin="davidwalsh.name"
|
2022-06-15 21:55:04 +02:00
|
|
|
{...args}
|
2021-07-01 16:36:48 +02:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|