1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-15 21:08:57 +00:00

Merge branch 'master' of github.com:satoshilabs/trezor-wallet

This commit is contained in:
Vladimir Volek 2018-11-13 15:07:20 +01:00
commit a764066742
2 changed files with 9 additions and 5 deletions

View File

@ -15,6 +15,7 @@ declare var COMMITHASH: string;
type Props = {
opened: boolean,
isLanding: boolean,
toggle: () => any,
}
@ -48,7 +49,7 @@ const Right = styled.div`
white-space: nowrap;
`;
const Footer = ({ opened, toggle }: Props) => (
const Footer = ({ opened, toggle, isLanding }: Props) => (
<Wrapper>
<Left>
<Copy title={COMMITHASH}>&copy; {getYear(new Date())}</Copy>
@ -56,14 +57,17 @@ const Footer = ({ opened, toggle }: Props) => (
<StyledLink href="/assets/tos.pdf" isGreen>Terms</StyledLink>
<StyledLink onClick={toggle} isGreen>{ opened ? 'Hide Log' : 'Show Log' }</StyledLink>
</Left>
<Right>
Exchange rates by<StyledLink href="https://www.coingecko.com" isGreen>Coingecko</StyledLink>
</Right>
{!isLanding && (
<Right>
Exchange rates by<StyledLink href="https://www.coingecko.com" isGreen>Coingecko</StyledLink>
</Right>
)}
</Wrapper>
);
Footer.propTypes = {
opened: PropTypes.bool.isRequired,
isLanding: PropTypes.bool,
toggle: PropTypes.func.isRequired,
};

View File

@ -53,7 +53,7 @@ const LandingWrapper = (props: Props) => (
{ props.children }
</LandingContent>
)}
<Footer />
<Footer isLanding />
</React.Fragment>
)}
</Wrapper>