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/transaction-detail.stories.js

51 lines
1.1 KiB

import React from 'react';
import InfoTooltip from '../../ui/info-tooltip/info-tooltip';
import TransactionDetailItem from '../transaction-detail-item/transaction-detail-item.component';
import TransactionDetail from '.';
export default {
title: 'Transaction Detail',
};
const rows = [
<TransactionDetailItem
key="line-1"
detailTitle={
<>
Estimated gas fee
<InfoTooltip contentText="This is the tooltip text" position="top">
<i className="fa fa-info-circle" />
</InfoTooltip>
</>
}
detailText="0.00896 ETH"
detailTotal="$15.73"
subTitle="Very likely in < 15 seconds"
subText={
<>
From <strong>$15.73 - $19.81</strong>
</>
}
/>,
<TransactionDetailItem
key="line-2"
detailTitle="Total"
detailText=".0312 ETH"
detailTotal="$15.77"
subTitle="Amount + gas fee"
subText={
<>
Up to <strong>$19.85</strong>
</>
}
/>,
];
export const basic = () => {
return (
<div style={{ width: '400px' }}>
<TransactionDetail rows={rows} />
</div>
);
};