mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-20 03:52:01 +00:00
flowtype fixes
This commit is contained in:
parent
11bf91b093
commit
c5b4ae1350
@ -54,7 +54,7 @@ export const showUnverifiedAddress = (): Action => ({
|
||||
});
|
||||
|
||||
//export const showAddress = (address_n: string): AsyncAction => {
|
||||
export const showAddress = (path: Array<number>): AsyncAction => async (
|
||||
export const showAddress = (path: string): AsyncAction => async (
|
||||
dispatch: Dispatch,
|
||||
getState: GetState
|
||||
): Promise<void> => {
|
||||
|
@ -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) => (
|
||||
|
@ -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 (
|
||||
<Icon
|
||||
icon={icon}
|
||||
hoverColor={hoverColor}
|
||||
onClick={onClick}
|
||||
color={color}
|
||||
size={size}
|
||||
{...rest}
|
||||
/>
|
||||
);
|
||||
return <Icon icon={icon} hoverColor={hoverColor} onClick={onClick} color={color} size={size} />;
|
||||
};
|
||||
|
||||
DeviceIcon.propTypes = {
|
||||
|
Loading…
Reference in New Issue
Block a user