2021-08-31 01:03:47 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { action } from '@storybook/addon-actions';
|
|
|
|
import { number, boolean } from '@storybook/addon-knobs';
|
|
|
|
import GasFeeDisplay from './gas-fee-display.component';
|
|
|
|
|
|
|
|
export default {
|
2021-12-01 20:27:57 +01:00
|
|
|
title: 'Pages/Send/SendContent/SendGasRow/GasFeeDisplay',
|
2021-09-15 20:55:48 +02:00
|
|
|
id: __filename,
|
2021-08-31 01:03:47 +02:00
|
|
|
};
|
|
|
|
|
2021-12-01 20:27:57 +01:00
|
|
|
export const DefaultStory = () => {
|
2021-08-31 01:03:47 +02:00
|
|
|
const gasTotal = number('Gas Total', 10000000000);
|
|
|
|
return (
|
|
|
|
<GasFeeDisplay
|
|
|
|
gasTotal={gasTotal}
|
|
|
|
gasLoadingError={boolean('Gas Loading Error', false)}
|
|
|
|
onReset={action('OnReset')}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|
2021-12-01 20:27:57 +01:00
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|