mirror of
https://github.com/trezor/trezor-wallet
synced 2025-08-04 04:48:49 +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 = (address_n: string): AsyncAction => {
|
||||||
export const showAddress = (path: Array<number>): AsyncAction => async (
|
export const showAddress = (path: string): AsyncAction => async (
|
||||||
dispatch: Dispatch,
|
dispatch: Dispatch,
|
||||||
getState: GetState
|
getState: GetState
|
||||||
): Promise<void> => {
|
): Promise<void> => {
|
||||||
|
@ -5,7 +5,7 @@ import { Header } from 'trezor-ui-components';
|
|||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
import { Link } from 'react-router-dom';
|
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 l10nMessages from './index.messages';
|
||||||
|
|
||||||
import LanguagePicker from './components/LanguagePicker/Container';
|
import LanguagePicker from './components/LanguagePicker/Container';
|
||||||
@ -13,7 +13,7 @@ import LanguagePicker from './components/LanguagePicker/Container';
|
|||||||
type MyProps = {
|
type MyProps = {
|
||||||
sidebarEnabled?: boolean,
|
sidebarEnabled?: boolean,
|
||||||
sidebarOpened?: ?boolean,
|
sidebarOpened?: ?boolean,
|
||||||
toggleSidebar?: toggleSidebarType,
|
toggleSidebar?: typeof toggleSidebarAction,
|
||||||
};
|
};
|
||||||
|
|
||||||
const MyHeader = ({ sidebarEnabled, sidebarOpened, toggleSidebar }: MyProps) => (
|
const MyHeader = ({ sidebarEnabled, sidebarOpened, toggleSidebar }: MyProps) => (
|
||||||
|
@ -30,20 +30,10 @@ const DeviceIcon = ({
|
|||||||
color = COLORS.TEXT_SECONDARY,
|
color = COLORS.TEXT_SECONDARY,
|
||||||
hoverColor,
|
hoverColor,
|
||||||
onClick,
|
onClick,
|
||||||
...rest
|
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
const majorVersion = device.features ? device.features.major_version : 2;
|
const majorVersion = device.features ? device.features.major_version : 2;
|
||||||
const icon = getDeviceIcon(majorVersion);
|
const icon = getDeviceIcon(majorVersion);
|
||||||
return (
|
return <Icon icon={icon} hoverColor={hoverColor} onClick={onClick} color={color} size={size} />;
|
||||||
<Icon
|
|
||||||
icon={icon}
|
|
||||||
hoverColor={hoverColor}
|
|
||||||
onClick={onClick}
|
|
||||||
color={color}
|
|
||||||
size={size}
|
|
||||||
{...rest}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
DeviceIcon.propTypes = {
|
DeviceIcon.propTypes = {
|
||||||
|
Loading…
Reference in New Issue
Block a user