mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-24 16:08:11 +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 { bindActionCreators } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import styled from 'styled-components';
|
||||
import { Notification } from 'components/Notification';
|
||||
import * as TrezorConnectActions from 'actions/TrezorConnectActions';
|
||||
|
||||
import type { State, Dispatch } from 'flowtype';
|
||||
|
||||
const Wrapper = styled.div``;
|
||||
|
||||
type Props = {
|
||||
acquiring: boolean;
|
||||
acquireDevice: typeof TrezorConnectActions.acquire
|
||||
}
|
||||
|
||||
const UnreadableDevice = (props: Props) => (
|
||||
<section className="acquire">
|
||||
<Wrapper>
|
||||
<Notification
|
||||
title="Unreadable device"
|
||||
message="Please install bridge"
|
||||
className="error"
|
||||
cancelable={false}
|
||||
/>
|
||||
</section>
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
export default connect(
|
||||
|
Loading…
Reference in New Issue
Block a user