diff --git a/src/components/MainSideBar/index.js b/src/components/MainSideBar/index.js index 4dbfef8b..b16fe054 100644 --- a/src/components/MainSideBar/index.js +++ b/src/components/MainSideBar/index.js @@ -74,66 +74,57 @@ class MainSideBar extends PureComponent { const { t, accounts, location, updateStatus } = this.props const { pathname } = location - const navigationItems = [ - { - key: 'dashboard', - label: t('dashboard:title'), - icon: IconPieChart, - iconActiveColor: 'wallet', - onClick: this.handleClickDashboard, - isActive: pathname === '/', - hasNotif: updateStatus === 'downloaded', - }, - { - key: 'send', - label: t('send:title'), - icon: IconSend, - iconActiveColor: 'wallet', - onClick: this.handleOpenSendModal, - }, - { - key: 'receive', - label: t('receive:title'), - icon: IconReceive, - iconActiveColor: 'wallet', - onClick: this.handleOpenReceiveModal, - }, - { - key: 'manager', - label: t('sidebar:manager'), - icon: IconManager, - iconActiveColor: 'wallet', - onClick: this.handleClickManager, - isActive: pathname === '/manager', - }, - { - key: 'exchange', - label: t('sidebar:exchange'), - icon: IconExchange, - iconActiveColor: 'wallet', - onClick: this.handleClickExchange, - isActive: pathname === '/exchange', - }, - ] + const addAccountButton = ( + + ) return ( - {navigationItems.map(item => )} + + + + + - - - } + titleRight={addAccountButton} emptyText={t('emptyState:sidebar.text')} > {accounts.map(account => (