2021-06-24 01:39:44 +02:00
|
|
|
import React from 'react';
|
|
|
|
import InfoTooltip from '../../ui/info-tooltip/info-tooltip';
|
|
|
|
import TransactionDetailItem from '../transaction-detail-item/transaction-detail-item.component';
|
2021-07-02 21:12:13 +02:00
|
|
|
import GasTiming from '../gas-timing/gas-timing.component';
|
2021-06-24 01:39:44 +02:00
|
|
|
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"
|
2021-07-26 17:35:51 +02:00
|
|
|
subTitle={<GasTiming maxPriorityFeePerGas="1" />}
|
2021-06-24 01:39:44 +02:00
|
|
|
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>
|
|
|
|
);
|
|
|
|
};
|
2021-07-14 15:42:10 +02:00
|
|
|
|
|
|
|
export const editable = () => {
|
|
|
|
return (
|
|
|
|
<div style={{ width: '400px' }}>
|
|
|
|
<TransactionDetail rows={rows} onEdit={() => console.log('Edit!')} />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|