2021-08-17 07:33:32 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { store } from '../../../.storybook/preview';
|
|
|
|
import ConfirmTokenTransactionBase from './confirm-token-transaction-base.component';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Confirmation Screens',
|
2021-09-15 20:55:48 +02:00
|
|
|
id: __filename,
|
2021-08-17 07:33:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
const state = store.getState();
|
|
|
|
|
|
|
|
export const ConfirmTokenTransaction = () => {
|
|
|
|
const { metamask, confirmTransaction } = state;
|
|
|
|
const { currentCurrency } = metamask;
|
|
|
|
const { fiatTransactionTotal } = confirmTransaction;
|
|
|
|
return (
|
|
|
|
<ConfirmTokenTransactionBase
|
|
|
|
currentCurrency={currentCurrency}
|
|
|
|
fiatTransactionTotal={fiatTransactionTotal}
|
|
|
|
tokenSymbol="DAI"
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|