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/UpdateBridge/index.js

23 lines
633 B

/* @flow */
import * as React from 'react';
import { Notification } from 'components/Notification';
import type { Props } from '../../index';
export default (props: Props) => {
if (props.connect.transport && props.connect.transport.outdated) {
return (
<Notification
type="warning"
title="New Trezor Bridge is available"
actions={
[{
label: 'Update',
callback: props.routerActions.gotoBridgeUpdate,
}]
}
/>
);
}
return null;
};