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:
commit
a764066742
@ -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}>© {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,
|
||||
};
|
||||
|
||||
|
@ -53,7 +53,7 @@ const LandingWrapper = (props: Props) => (
|
||||
{ props.children }
|
||||
</LandingContent>
|
||||
)}
|
||||
<Footer />
|
||||
<Footer isLanding />
|
||||
</React.Fragment>
|
||||
)}
|
||||
</Wrapper>
|
||||
|
Loading…
Reference in New Issue
Block a user