1
0
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:
Szymon Lesisz 2018-10-04 23:03:52 +02:00
parent 3ddce5b5d1
commit 0c36ad96bf

View File

@ -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"