You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-wallet/src/components/notifications/App/components/UpdateFirmware/index.js

24 lines
691 B

/* @flow */
import * as React from 'react';
import Notification from 'components/Notification';
import type { Props } from '../../index';
export default (props: Props) => {
const { selectedDevice } = props.wallet;
const outdated = selectedDevice && selectedDevice.features && selectedDevice.firmware === 'outdated';
if (!outdated) return null;
return (
<Notification
key="update-firmware"
type="warning"
title="Firmware update"
actions={
[{
label: 'Update',
callback: props.routerActions.gotoFirmwareUpdate,
}]
}
/>
);
};