mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
09d29ef00d
* Renaming broken stories. Fixing deprecated default arg syntax for stories using defaultValue * Fixing imports
27 lines
729 B
JavaScript
27 lines
729 B
JavaScript
import React from 'react';
|
|
import { store } from '../../../.storybook/preview';
|
|
import ConfirmTokenTransactionBase from './confirm-token-transaction-base';
|
|
|
|
// eslint-disable-next-line import/no-anonymous-default-export
|
|
export default {
|
|
title: 'Pages/ConfirmTokenTransactionBase',
|
|
id: __filename,
|
|
};
|
|
|
|
const state = store.getState();
|
|
|
|
export const DefaultStory = () => {
|
|
const { metamask, confirmTransaction } = state;
|
|
const { currentCurrency } = metamask;
|
|
const { fiatTransactionTotal } = confirmTransaction;
|
|
return (
|
|
<ConfirmTokenTransactionBase
|
|
currentCurrency={currentCurrency}
|
|
fiatTransactionTotal={fiatTransactionTotal}
|
|
tokenSymbol="DAI"
|
|
/>
|
|
);
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|