1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-03 14:44:27 +01:00
metamask-extension/ui/pages/send/send-content/send-gas-row/gas-fee-display/gas-fee-display.stories.js
dragana8 76bfc399b6
convert knobs and actions to controls / args (#13203)
* changed knobs

* review updates
2022-01-13 08:06:27 -03:30

23 lines
515 B
JavaScript

import React from 'react';
import GasFeeDisplay from './gas-fee-display.component';
export default {
title: 'Pages/Send/SendContent/SendGasRow/GasFeeDisplay',
id: __filename,
argTypes: {
gasTotal: { control: 'number' },
gasLoadingError: { control: 'boolean' },
onReset: { action: 'OnReset' },
},
};
export const DefaultStory = (args) => {
return <GasFeeDisplay {...args} />;
};
DefaultStory.storyName = 'Default';
DefaultStory.args = {
gasTotal: 10000000000,
gasLoadingError: false,
};