diff options
Diffstat (limited to 'ui/app/components/currency-input/currency-input.container.js')
-rw-r--r-- | ui/app/components/currency-input/currency-input.container.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ui/app/components/currency-input/currency-input.container.js b/ui/app/components/currency-input/currency-input.container.js deleted file mode 100644 index 1d1ed7b41..000000000 --- a/ui/app/components/currency-input/currency-input.container.js +++ /dev/null @@ -1,28 +0,0 @@ -import { connect } from 'react-redux' -import CurrencyInput from './currency-input.component' -import { ETH } from '../../constants/common' - -const mapStateToProps = state => { - const { metamask: { nativeCurrency, currentCurrency, conversionRate } } = state - - return { - nativeCurrency, - currentCurrency, - conversionRate, - } -} - -const mergeProps = (stateProps, dispatchProps, ownProps) => { - const { nativeCurrency, currentCurrency } = stateProps - const { useFiat } = ownProps - const suffix = useFiat ? currentCurrency.toUpperCase() : nativeCurrency || ETH - - return { - ...stateProps, - ...dispatchProps, - ...ownProps, - suffix, - } -} - -export default connect(mapStateToProps, null, mergeProps)(CurrencyInput) |