mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
9b78d3ab07
See [`import/extensions`](https://eslint.org/docs/rules/import/extensions) for more information. This change enables `import/extensions` and fixes the issues raised by the rule.
48 lines
1.4 KiB
JavaScript
48 lines
1.4 KiB
JavaScript
import React from 'react'
|
|
import FeeCard from './fee-card'
|
|
import { action } from '@storybook/addon-actions'
|
|
import { text } from '@storybook/addon-knobs/react'
|
|
|
|
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>
|
|
)
|
|
}
|