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.
36 lines
916 B
36 lines
916 B
/* @flow */
|
|
|
|
|
|
import React from 'react';
|
|
import { bindActionCreators } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
import { Notification } from 'components/Notification';
|
|
import * as TrezorConnectActions from 'actions/TrezorConnectActions';
|
|
|
|
import type { State, Dispatch } from 'flowtype';
|
|
|
|
type Props = {
|
|
acquiring: boolean;
|
|
acquireDevice: typeof TrezorConnectActions.acquire
|
|
}
|
|
|
|
const UnreadableDevice = (props: Props) => (
|
|
<section className="acquire">
|
|
<Notification
|
|
title="Unreadable device"
|
|
message="Please install bridge"
|
|
className="error"
|
|
cancelable={false}
|
|
/>
|
|
</section>
|
|
);
|
|
|
|
export default connect(
|
|
(state: State) => ({
|
|
acquiring: state.connect.acquiring,
|
|
}),
|
|
(dispatch: Dispatch) => ({
|
|
acquireDevice: bindActionCreators(TrezorConnectActions.acquire, dispatch),
|
|
}),
|
|
)(UnreadableDevice);
|