1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-30 20:28:09 +00:00

Adjust jsx templtes to new components

This commit is contained in:
Vladimir Volek 2018-08-31 13:58:19 +02:00
parent ca02764f68
commit e1097b3fcc
3 changed files with 7 additions and 8 deletions

View File

@ -18,7 +18,7 @@ const Wrapper = styled.div`
display: flex;
`;
const LinkWrapper = styled(Link)`
const StyledLink = styled(Link)`
margin: 0 6px;
margin-right: 20px;
`;
@ -30,9 +30,9 @@ const Copy = styled.div`
const Footer = ({ toggle }) => (
<Wrapper>
<Copy>&copy; {getYear(new Date())}</Copy>
<LinkWrapper href="http://satoshilabs.com" target="_blank" rel="noreferrer noopener" className="satoshi" isGreen>SatoshiLabs</LinkWrapper>
<LinkWrapper href="tos.pdf" target="_blank" rel="noreferrer noopener" isGreen>Terms</LinkWrapper>
<LinkWrapper onClick={toggle} isGreen>Show Log</LinkWrapper>
<StyledLink href="http://satoshilabs.com" target="_blank" rel="noreferrer noopener" className="satoshi" isGreen>SatoshiLabs</StyledLink>
<StyledLink href="tos.pdf" target="_blank" rel="noreferrer noopener" isGreen>Terms</StyledLink>
<StyledLink onClick={toggle} isGreen>Show Log</StyledLink>
</Wrapper>
);

View File

@ -1,5 +1,6 @@
/* @flow */
import React from 'react';
import Link from 'components/Link';
import styled from 'styled-components';
import colors from 'config/colors';
@ -32,7 +33,7 @@ const LayoutWrapper = styled.div`
}
`;
const A = styled.a`
const A = styled(Link)`
color: ${colors.WHITE};
margin-left: 24px;

View File

@ -90,9 +90,7 @@ class Modal extends Component<Props> {
render() {
if (!this.props.modal.opened) return null;
const { opened } = this.props.modal;
const windowType = UI.REQUEST_PIN;
const { opened, windowType } = this.props.modal;
let component = null;
switch (windowType) {