mirror of
https://github.com/trezor/trezor-wallet
synced 2025-08-05 05:15:28 +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,
|
shouldRenderDeviceSelection: false,
|
||||||
animationType: 'slide-right',
|
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">
|
<TransitionGroupWrapper component="div" className="transition-container">
|
||||||
<CSSTransition
|
<CSSTransition
|
||||||
key={this.state.animationType}
|
key={this.state.animationType}
|
||||||
onEnter={() => {
|
|
||||||
console.warn('ON ENTER');
|
|
||||||
}}
|
|
||||||
onEntering={() => {
|
|
||||||
console.warn('ON ENTERING (ACTIVE)');
|
|
||||||
}}
|
|
||||||
onExit={() => {
|
onExit={() => {
|
||||||
console.warn('ON EXIT');
|
|
||||||
window.dispatchEvent(new Event('resize'));
|
window.dispatchEvent(new Event('resize'));
|
||||||
}}
|
}}
|
||||||
onExiting={() => {
|
|
||||||
console.warn('ON EXITING (ACTIVE)');
|
|
||||||
}}
|
|
||||||
onExited={() => window.dispatchEvent(new Event('resize'))}
|
onExited={() => window.dispatchEvent(new Event('resize'))}
|
||||||
classNames={this.state.animationType}
|
classNames={this.state.animationType}
|
||||||
appear={false}
|
appear={false}
|
||||||
|
Loading…
Reference in New Issue
Block a user