1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-07-14 02:28:21 +00:00
trezor-wallet/src/js/components/modal/DuplicateDevice.js
Szymon Lesisz cb83b2b7b6 bordel 2
2018-02-20 10:30:36 +01:00

21 lines
600 B
JavaScript

/* @flow */
'use strict';
import React from 'react';
const RememberDevice = (props: any): any => {
const { device } = props.modal;
const { onCancel, onDuplicateDevice } = props.modalActions;
return (
<div className="pin">
<h3>Duplicate { device.label } ?</h3>
<label>Device label</label>
<input type="text" />
<button onClick={ onCancel }>Cancel</button>
<button onClick={ event => onDuplicateDevice( { ...device, instanceLabel: "kokot" } ) }>Duplicate</button>
</div>
);
}
export default RememberDevice;