mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-23 06:21:06 +00:00
Fix issue when "DeviceMenu" couldn't be closed when device was in a bootloader mode
This commit is contained in:
parent
5a72dd4f27
commit
54603f62a1
@ -93,6 +93,10 @@ class LeftNavigation extends Component {
|
||||
shouldRenderDeviceSelection: false,
|
||||
animationType: 'slide-right',
|
||||
});
|
||||
} else if (selectedDevice.features.bootloader_mode) {
|
||||
this.setState({
|
||||
shouldRenderDeviceSelection: false,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -102,19 +106,9 @@ class LeftNavigation extends Component {
|
||||
<TransitionGroupWrapper component="div" className="transition-container">
|
||||
<CSSTransition
|
||||
key={this.state.animationType}
|
||||
onEnter={() => {
|
||||
console.warn('ON ENTER');
|
||||
}}
|
||||
onEntering={() => {
|
||||
console.warn('ON ENTERING (ACTIVE)');
|
||||
}}
|
||||
onExit={() => {
|
||||
console.warn('ON EXIT');
|
||||
window.dispatchEvent(new Event('resize'));
|
||||
}}
|
||||
onExiting={() => {
|
||||
console.warn('ON EXITING (ACTIVE)');
|
||||
}}
|
||||
onExited={() => window.dispatchEvent(new Event('resize'))}
|
||||
classNames={this.state.animationType}
|
||||
appear={false}
|
||||
|
Loading…
Reference in New Issue
Block a user