mirror of https://github.com/trezor/trezor-wallet
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.
27 lines
871 B
27 lines
871 B
/* @flow */
|
|
import * as React from 'react';
|
|
import { Notification } from 'trezor-ui-components';
|
|
|
|
import type { Props } from '../../index';
|
|
|
|
export default (props: Props) => {
|
|
const { selectedDevice } = props.wallet;
|
|
const needsBackup =
|
|
selectedDevice && selectedDevice.features && selectedDevice.features.needs_backup;
|
|
if (!needsBackup) return null;
|
|
return (
|
|
<Notification
|
|
key="no-backup"
|
|
type="warning"
|
|
title="Your Trezor is not backed up!"
|
|
message="If your device is ever lost or damaged, your funds will be lost. Backup your device first, to protect your coins against such events."
|
|
actions={[
|
|
{
|
|
label: 'Create a backup',
|
|
callback: props.routerActions.gotoBackup,
|
|
},
|
|
]}
|
|
/>
|
|
);
|
|
};
|