Moved ureadable device to styled-components

pull/8/head
Vladimir Volek 6 years ago
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…
Cancel
Save