From b27e3af7f363a82e70a7b7850552239a13d19c86 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Thu, 3 Jan 2019 18:18:13 +0100 Subject: [PATCH] remove unnecessary switch from TopNavigationComponent --- .../components/TopNavigationAccount/index.js | 33 +++++++------------ 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/src/views/Wallet/components/TopNavigationAccount/index.js b/src/views/Wallet/components/TopNavigationAccount/index.js index 492f608f..d61d05fd 100644 --- a/src/views/Wallet/components/TopNavigationAccount/index.js +++ b/src/views/Wallet/components/TopNavigationAccount/index.js @@ -64,28 +64,17 @@ class TopNavigationAccount extends React.PureComponent { const basePath = `/device/${state.device}/network/${state.network}/account/${state.account}`; - switch (network.type) { - case 'ethereum': - return ( - - Summary - Receive - Send - Sign & Verify - this.wrapper} /> - - ); - case 'ripple': - return ( - - Summary - Receive - Send - this.wrapper} /> - - ); - default: return null; - } + return ( + + Summary + Receive + Send + {network.type === 'ethereum' + && Sign & Verify + } + this.wrapper} /> + + ); } }