2021-08-17 07:33:32 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { store } from '../../../.storybook/preview';
|
2022-03-09 15:38:12 +01:00
|
|
|
import ConfirmTokenTransactionBase from './confirm-token-transaction-base';
|
2021-08-17 07:33:32 +02:00
|
|
|
|
2022-12-15 23:46:30 +01:00
|
|
|
// eslint-disable-next-line import/no-anonymous-default-export
|
2021-08-17 07:33:32 +02:00
|
|
|
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';
|