1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-24 20:32:02 +02:00
metamask-extension/ui/app/pages/token/fee-card/fee-card.stories.js
Whymarrh Whitby c1e3c229bc
Fix import/order issues (#9239)
See [`import/order`](https://eslint.org/docs/rules/import/order) for more information.

This change enables `import/order` and fixes the issues raised by the rule.
2020-08-18 16:48:25 -02:30

48 lines
1.4 KiB
JavaScript

import React from 'react'
import { action } from '@storybook/addon-actions'
import { text } from '@storybook/addon-knobs/react'
import FeeCard from './fee-card'
const containerStyle = {
width: '300px',
}
export default {
title: 'FeeCard',
}
export const WithSecondRow = () => {
return (
<div style={containerStyle}>
<FeeCard
onFeeRowClick={action('Fee row link clicked')}
feeRowText={text('feeRowText', 'Network fees')}
feeRowLinkText={text('feeRowLinkText', 'Edit')}
primaryFee={text('primaryFee', '1 ETH')}
secondaryFee={text('secondaryFee', '$300.57')}
onSecondRowClick={action('Second row link clicked')}
secondRowText={text('secondRowText', 'This calls a contract')}
secondRowLinkText={text('secondRowLinkText', 'Learn More')}
/>
</div>
)
}
export const WithoutSecondRow = () => {
return (
<div style={containerStyle}>
<FeeCard
onFeeRowClick={action('Fee row link clicked')}
feeRowText={text('feeRowText', 'Network fees')}
feeRowLinkText={text('feeRowLinkText', 'Edit')}
primaryFee={text('primaryFee', '1 ETH')}
secondaryFee={text('secondaryFee', '$300.57')}
onSecondRowClick={action('Second row link clicked')}
secondRowText={text('secondRowText', 'This calls a contract')}
secondRowLinkText={text('secondRowLinkText', 'Learn More')}
hideSecondRow
/>
</div>
)
}