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.
21 lines
764 B
21 lines
764 B
/* @flow */
|
|
'use strict';
|
|
|
|
import React from 'react';
|
|
import type { Props } from './index';
|
|
|
|
const RememberDevice = (props: Props) => {
|
|
if (!props.modal.opened) return null;
|
|
const { device } = props.modal;
|
|
const { onCancel, onDuplicateDevice } = props.modalActions;
|
|
return (
|
|
<div className="duplicate">
|
|
<h3>Clone { device.instanceLabel }?</h3>
|
|
<p>This will create new instance of device which can be used with different passphrase</p>
|
|
<button onClick={ event => onDuplicateDevice( { ...device, instanceLabel: "TODO: user label from input" } ) }>Create new instance</button>
|
|
<button className="white" onClick={ onCancel }>Cancel</button>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default RememberDevice; |