diff --git a/src/actions/ReceiveActions.js b/src/actions/ReceiveActions.js index 7516d195..9d27fb8f 100644 --- a/src/actions/ReceiveActions.js +++ b/src/actions/ReceiveActions.js @@ -54,7 +54,7 @@ export const showUnverifiedAddress = (): Action => ({ }); //export const showAddress = (address_n: string): AsyncAction => { -export const showAddress = (path: Array): AsyncAction => async ( +export const showAddress = (path: string): AsyncAction => async ( dispatch: Dispatch, getState: GetState ): Promise => { diff --git a/src/components/Header/index.js b/src/components/Header/index.js index 622bc178..6f10760b 100644 --- a/src/components/Header/index.js +++ b/src/components/Header/index.js @@ -5,7 +5,7 @@ import { Header } from 'trezor-ui-components'; import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router-dom'; -import type { toggleSidebar as toggleSidebarType } from 'actions/WalletActions'; +import { toggleSidebar as toggleSidebarAction } from 'actions/WalletActions'; import l10nMessages from './index.messages'; import LanguagePicker from './components/LanguagePicker/Container'; @@ -13,7 +13,7 @@ import LanguagePicker from './components/LanguagePicker/Container'; type MyProps = { sidebarEnabled?: boolean, sidebarOpened?: ?boolean, - toggleSidebar?: toggleSidebarType, + toggleSidebar?: typeof toggleSidebarAction, }; const MyHeader = ({ sidebarEnabled, sidebarOpened, toggleSidebar }: MyProps) => ( diff --git a/src/components/images/DeviceIcon/index.js b/src/components/images/DeviceIcon/index.js index 8ae997ad..853c8886 100644 --- a/src/components/images/DeviceIcon/index.js +++ b/src/components/images/DeviceIcon/index.js @@ -30,20 +30,10 @@ const DeviceIcon = ({ color = COLORS.TEXT_SECONDARY, hoverColor, onClick, - ...rest }: Props) => { const majorVersion = device.features ? device.features.major_version : 2; const icon = getDeviceIcon(majorVersion); - return ( - - ); + return ; }; DeviceIcon.propTypes = {