|
|
@ -5,11 +5,11 @@ import styled from 'styled-components';
|
|
|
|
|
|
|
|
|
|
|
|
import type { TrezorDevice } from 'flowtype';
|
|
|
|
import type { TrezorDevice } from 'flowtype';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
AccountSelection,
|
|
|
|
AccountMenu,
|
|
|
|
CoinSelection,
|
|
|
|
CoinMenu,
|
|
|
|
DeviceSelect,
|
|
|
|
DeviceSelect,
|
|
|
|
DeviceDropdown,
|
|
|
|
DeviceDropdown,
|
|
|
|
} from './Selection';
|
|
|
|
} from './Menu';
|
|
|
|
import StickyContainer from './StickyContainer';
|
|
|
|
import StickyContainer from './StickyContainer';
|
|
|
|
|
|
|
|
|
|
|
|
import type { Props } from './index';
|
|
|
|
import type { Props } from './index';
|
|
|
@ -72,7 +72,7 @@ const LeftNavigation = (props: Props): React$Element<typeof StickyContainer | st
|
|
|
|
animationType = 'slide-left';
|
|
|
|
animationType = 'slide-left';
|
|
|
|
// menu = (
|
|
|
|
// menu = (
|
|
|
|
// <TransitionMenu animationType="slide-left">
|
|
|
|
// <TransitionMenu animationType="slide-left">
|
|
|
|
// <AccountSelection {...props} />
|
|
|
|
// <AccountMenu {...props} />
|
|
|
|
// </TransitionMenu>
|
|
|
|
// </TransitionMenu>
|
|
|
|
// );
|
|
|
|
// );
|
|
|
|
} else if (selected.features && !selected.features.bootloader_mode && selected.features.initialized) {
|
|
|
|
} else if (selected.features && !selected.features.bootloader_mode && selected.features.initialized) {
|
|
|
@ -81,7 +81,7 @@ const LeftNavigation = (props: Props): React$Element<typeof StickyContainer | st
|
|
|
|
animationType = 'slide-right';
|
|
|
|
animationType = 'slide-right';
|
|
|
|
// menu = (
|
|
|
|
// menu = (
|
|
|
|
// <TransitionMenu animationType="slide-right">
|
|
|
|
// <TransitionMenu animationType="slide-right">
|
|
|
|
// <CoinSelection {...props} />
|
|
|
|
// <CoinMenu {...props} />
|
|
|
|
// </TransitionMenu>
|
|
|
|
// </TransitionMenu>
|
|
|
|
// );
|
|
|
|
// );
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -97,8 +97,8 @@ const LeftNavigation = (props: Props): React$Element<typeof StickyContainer | st
|
|
|
|
<TransitionMenu
|
|
|
|
<TransitionMenu
|
|
|
|
animationType={animationType}
|
|
|
|
animationType={animationType}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{animationType === 'slide-left' && <AccountSelection key="accounts" {...props} />}
|
|
|
|
{animationType === 'slide-left' && <AccountMenu key="accounts" {...props} />}
|
|
|
|
{animationType === 'slide-right' && <CoinSelection key="coins" {...props} />}
|
|
|
|
{animationType === 'slide-right' && <CoinMenu key="coins" {...props} />}
|
|
|
|
</TransitionMenu>
|
|
|
|
</TransitionMenu>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|