From 0df6590e728052c232d685966e6c3925ce4978c7 Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Thu, 30 Aug 2018 12:18:55 +0200 Subject: [PATCH] Refactor "AccountSummary" - since "AddedToken" handles only a single token now (60947cb5357c036fc1d2394f80edb654a4546c98) the logic of handling an array of tokens is now here - rename inner function to "AccountSummary" --- .../Wallet/views/AccountSummary/index.js | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/views/Wallet/views/AccountSummary/index.js b/src/views/Wallet/views/AccountSummary/index.js index 293c36f3..1715b572 100644 --- a/src/views/Wallet/views/AccountSummary/index.js +++ b/src/views/Wallet/views/AccountSummary/index.js @@ -15,7 +15,7 @@ import * as stateUtils from 'reducers/utils'; import SelectedAccount from 'views/Wallet/components/SelectedAccount'; import Link from 'components/Link'; import AccountBalance from './components/AccountBalance'; -import SummaryTokens from './components/Tokens'; +import AddedToken from './components/AddedToken'; import type { Props } from './Container'; @@ -51,7 +51,9 @@ const AsyncSelectWrapper = styled.div` padding: 0px 48px 32px 48px; `; -const Summary = (props: Props) => { +const AddedTokensWrapper = styled.div``; + +const AccountSummary = (props: Props) => { const device = props.wallet.selectedDevice; const { account, @@ -139,13 +141,18 @@ const Summary = (props: Props) => { /> - + + {tokens.map(token => ( + + ))} + ); }; -export default Summary; +export default AccountSummary;