mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
enable App/UpdateFirmware notification
This commit is contained in:
parent
b7ded5a138
commit
e9aee96440
@ -5,6 +5,9 @@ import { Notification } from 'components/Notification';
|
|||||||
import type { Props } from '../../index';
|
import type { Props } from '../../index';
|
||||||
|
|
||||||
export default (props: Props) => {
|
export default (props: Props) => {
|
||||||
|
const { selectedDevice } = props.wallet;
|
||||||
|
const outdated = selectedDevice && selectedDevice.features && selectedDevice.firmware === 'outdated';
|
||||||
|
if (!outdated) return null;
|
||||||
return (
|
return (
|
||||||
<Notification
|
<Notification
|
||||||
type="warning"
|
type="warning"
|
||||||
|
Loading…
Reference in New Issue
Block a user