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 {
|
2021-12-01 20:27:57 +01:00
|
|
|
title: 'Pages/ConfirmTokenTransactionBase',
|
2021-09-15 20:55:48 +02:00
|
|
|
id: __filename,
|
2021-08-17 07:33:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
const state = store.getState();
|
|
|
|
|
2021-12-01 20:27:57 +01:00
|
|
|
export const DefaultStory = () => {
|
2021-08-17 07:33:32 +02:00
|
|
|
const { metamask, confirmTransaction } = state;
|
|
|
|
const { currentCurrency } = metamask;
|
|
|
|
const { fiatTransactionTotal } = confirmTransaction;
|
|
|
|
return (
|
|
|
|
<ConfirmTokenTransactionBase
|
|
|
|
currentCurrency={currentCurrency}
|
|
|
|
fiatTransactionTotal={fiatTransactionTotal}
|
|
|
|
tokenSymbol="DAI"
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|
2021-12-01 20:27:57 +01:00
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|