mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-12 09:00:58 +00:00
Moved ureadable device to styled-components
This commit is contained in:
parent
30acfc3ca0
commit
ed6e0ee6da
@ -4,25 +4,28 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
import styled from 'styled-components';
|
||||||
import { Notification } from 'components/Notification';
|
import { Notification } from 'components/Notification';
|
||||||
import * as TrezorConnectActions from 'actions/TrezorConnectActions';
|
import * as TrezorConnectActions from 'actions/TrezorConnectActions';
|
||||||
|
|
||||||
import type { State, Dispatch } from 'flowtype';
|
import type { State, Dispatch } from 'flowtype';
|
||||||
|
|
||||||
|
const Wrapper = styled.div``;
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
acquiring: boolean;
|
acquiring: boolean;
|
||||||
acquireDevice: typeof TrezorConnectActions.acquire
|
acquireDevice: typeof TrezorConnectActions.acquire
|
||||||
}
|
}
|
||||||
|
|
||||||
const UnreadableDevice = (props: Props) => (
|
const UnreadableDevice = (props: Props) => (
|
||||||
<section className="acquire">
|
<Wrapper>
|
||||||
<Notification
|
<Notification
|
||||||
title="Unreadable device"
|
title="Unreadable device"
|
||||||
message="Please install bridge"
|
message="Please install bridge"
|
||||||
className="error"
|
className="error"
|
||||||
cancelable={false}
|
cancelable={false}
|
||||||
/>
|
/>
|
||||||
</section>
|
</Wrapper>
|
||||||
);
|
);
|
||||||
|
|
||||||
export default connect(
|
export default connect(
|
||||||
|
Loading…
Reference in New Issue
Block a user