1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-07-04 05:42:34 +00:00
trezor-wallet/src/js/components/wallet/Acquire.js
Szymon Lesisz 8ed54612e8 bundle
2018-03-08 17:10:53 +01:00

40 lines
989 B
JavaScript

/* @flow */
'use strict';
import React from 'react';
import { Notification } from '../common/Notification';
const Acquire = (props: any): any => {
const actions = [
{
label: 'Acquire device',
callback: () => {
props.acquireDevice()
}
}
];
return (
<section className="acquire">
<Notification
title="Device is used in other window"
message="Do you want to use your device in this window?"
className="info"
cancelable={false}
actions={actions}
close={ () => {} }
/>
{/* <div className="warning">
<div>
<h2></h2>
<p></p>
</div>
<button onClick={ event => props.acquireDevice() }>Acquire device</button>
</div> */}
</section>
);
}
export default Acquire;