mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +00:00
enable App/UpdateFirmware notification
This commit is contained in:
parent
3ddce5b5d1
commit
0c36ad96bf
@ -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