diff --git a/src/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js b/src/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js index 9cdc96be..3b87b8d9 100644 --- a/src/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js +++ b/src/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js @@ -2,7 +2,6 @@ import React, { PureComponent } from 'react'; import styled from 'styled-components'; import TrezorConnect from 'trezor-connect'; -import type { TrezorDevice } from 'flowtype'; import Button from 'components/Button'; import * as deviceUtils from 'utils/device'; import MenuItems from './components/MenuItems'; @@ -22,11 +21,6 @@ const StyledButton = styled(Button)` flex: 1; `; -type DeviceMenuItem = { - type: string; - label: string; -} - class DeviceMenu extends PureComponent { constructor(props: Props) { super(props); @@ -50,19 +44,6 @@ class DeviceMenu extends PureComponent { window.removeEventListener('mousedown', this.mouseDownHandler, false); } - onDeviceMenuClick(item: DeviceMenuItem, device: TrezorDevice): void { - if (item.type === 'reload') { - this.props.acquireDevice(); - } else if (item.type === 'forget') { - this.props.forgetDevice(device); - } else if (item.type === 'clone') { - this.props.duplicateDevice(device); - } else if (item.type === 'settings') { - this.props.toggleDeviceDropdown(false); - this.props.gotoDeviceSettings(device); - } - } - blurHandler(): void { this.props.toggleDeviceDropdown(false); }