From 935c24cc18a9d21fe5198012055c828b4b7c6d32 Mon Sep 17 00:00:00 2001 From: meriadec Date: Mon, 12 Feb 2018 16:47:41 +0100 Subject: [PATCH] Remove device from sidebar --- src/components/SideBar/index.js | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/src/components/SideBar/index.js b/src/components/SideBar/index.js index 5ec3acdb..c51619c0 100644 --- a/src/components/SideBar/index.js +++ b/src/components/SideBar/index.js @@ -9,9 +9,8 @@ import { connect } from 'react-redux' import { MODAL_SEND, MODAL_RECEIVE, MODAL_ADD_ACCOUNT } from 'constants' import type { MapStateToProps } from 'react-redux' -import type { Accounts, T, Device } from 'types/common' +import type { Accounts, T } from 'types/common' -import { getCurrentDevice } from 'reducers/devices' import { openModal } from 'reducers/modals' import { getVisibleAccounts } from 'reducers/accounts' @@ -26,7 +25,6 @@ import IconCurrencyBitcoin from 'icons/currencies/Bitcoin' import Box, { Tabbable } from 'components/base/Box' import GrowScroll from 'components/base/GrowScroll' -import Text from 'components/base/Text' import Item from './Item' const CapsSubtitle = styled(Box).attrs({ @@ -44,15 +42,6 @@ const Container = styled(Box)` width: ${p => p.theme.sizes.sideBarWidth}px; ` -const Connected = styled(Box).attrs({ - bg: p => (p.state ? 'green' : 'grenade'), - mx: 3, -})` - border-radius: 50%; - height: 10px; - width: 10px; -` - const PlusBtn = styled(Tabbable).attrs({ p: 1, m: -1, @@ -72,12 +61,10 @@ type Props = { t: T, accounts: Accounts, openModal: Function, - currentDevice: Device, } const mapStateToProps: MapStateToProps<*, *, *> = state => ({ accounts: getVisibleAccounts(state), - currentDevice: getCurrentDevice(state), }) const mapDispatchToProps = { @@ -86,7 +73,7 @@ const mapDispatchToProps = { class SideBar extends PureComponent { render() { - const { t, accounts, openModal, currentDevice } = this.props + const { t, accounts, openModal } = this.props return ( @@ -131,21 +118,6 @@ class SideBar extends PureComponent { - - - - - - - Ledger Nano S - - - - {t(currentDevice !== null ? 'device.connected' : 'device.notConnected')} - - - - ) }