A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ciphermask/ui/components/app/transaction-detail-item/transaction-detail-item.sto...

63 lines
1.4 KiB

import React from 'react';
import InfoTooltip from '../../ui/info-tooltip/info-tooltip';
import { COLORS } from '../../../helpers/constants/design-system';
import README from './README.mdx';
import TransactionDetailItem from '.';
export default {
title: 'Components/App/TransactionDetailItem',
id: __filename,
component: TransactionDetailItem,
parameters: {
docs: {
page: README,
},
},
argTypes: {
detailTitle: { control: 'object' },
detailTitleColor: {
control: {
type: 'select',
},
options: Object.values(COLORS),
},
detailText: { control: 'text' },
detailTotal: { control: 'text' },
subTitle: { control: 'object' },
subText: { control: 'object' },
},
};
export const DefaultStory = (args) => {
return (
<div style={{ width: '400px' }}>
<TransactionDetailItem {...args} />
</div>
);
};
DefaultStory.storyName = 'Default';
DefaultStory.args = {
detailTitle: (
<>
<strong>Estimated gas fee</strong>
<InfoTooltip contentText="This is the tooltip text" position="top">
<i className="fa fa-info-circle" />
</InfoTooltip>
</>
),
detailText: '16565.30',
detailTotal: '0.0089 ETH',
subTitle: 'Likely in < 30 seconds',
boldHeadings: true,
flexWidthValues: false,
subText: (
<span>
From <strong>$16565 - $19000</strong>
</span>
),
};