All links adjusted according to new component

pull/165/head
Vladimir Volek 6 years ago committed by Szymon Lesisz
parent 14904bff99
commit 37ed349dff

@ -38,8 +38,8 @@ const Copy = styled.div`
const Footer = ({ opened, toggle }: Props) => ( const Footer = ({ opened, toggle }: Props) => (
<Wrapper> <Wrapper>
<Copy title={window.COMMITHASH}>&copy; {getYear(new Date())}</Copy> <Copy title={window.COMMITHASH}>&copy; {getYear(new Date())}</Copy>
<StyledLink href="http://satoshilabs.com" target="_blank" rel="noreferrer noopener" isGreen>SatoshiLabs</StyledLink> <StyledLink href="http://satoshilabs.com" isGreen>SatoshiLabs</StyledLink>
<StyledLink href="/assets/tos.pdf" target="_blank" rel="noreferrer noopener" isGreen>Terms</StyledLink> <StyledLink href="/assets/tos.pdf" isGreen>Terms</StyledLink>
<StyledLink onClick={toggle} isGreen>{ opened ? 'Hide Log' : 'Show Log' }</StyledLink> <StyledLink onClick={toggle} isGreen>{ opened ? 'Hide Log' : 'Show Log' }</StyledLink>
</Wrapper> </Wrapper>
); );

@ -40,7 +40,7 @@ const Tooltip = ({
<ContentWrapper> <ContentWrapper>
<Content maxWidth={maxWidth}>{content}</Content> <Content maxWidth={maxWidth}>{content}</Content>
{readMoreLink && ( {readMoreLink && (
<Link target="_blank" href={readMoreLink}> <Link href={readMoreLink}>
<ReadMore>Read more</ReadMore> <ReadMore>Read more</ReadMore>
</Link> </Link>
) )

@ -164,8 +164,6 @@ class Pin extends Component<Props, State> {
<StyledLink <StyledLink
isGreen isGreen
href="https://wiki.trezor.io/User_manual:Entering_PIN" href="https://wiki.trezor.io/User_manual:Entering_PIN"
target="_blank"
rel="noreferrer noopener"
>Learn more >Learn more
</StyledLink> </StyledLink>
</StyledP> </StyledP>

@ -36,22 +36,14 @@ const BrowserNotSupported = () => (
<Browser> <Browser>
<BrowserLogo src={ChromeImage} /> <BrowserLogo src={ChromeImage} />
<P isSmaller>Google Chrome</P> <P isSmaller>Google Chrome</P>
<Link <Link href="https://www.google.com/chrome/">
href="https://www.google.com/chrome/"
target="_blank"
rel="noreferrer noopener"
>
<Button>Get Chrome</Button> <Button>Get Chrome</Button>
</Link> </Link>
</Browser> </Browser>
<Browser> <Browser>
<BrowserLogo src={FirefoxImage} /> <BrowserLogo src={FirefoxImage} />
<P isSmaller>Mozzila Firefox</P> <P isSmaller>Mozzila Firefox</P>
<Link <Link href="https://www.mozilla.org/en-US/firefox/new/">
href="https://www.mozilla.org/en-US/firefox/new/"
target="_blank"
rel="noreferrer noopener"
>
<Button>Get Firefox</Button> <Button>Get Firefox</Button>
</Link> </Link>

@ -183,8 +183,6 @@ class InstallBridge extends Component<Props, State> {
<LearnMoreText>Learn more about latest versions in</LearnMoreText> <LearnMoreText>Learn more about latest versions in</LearnMoreText>
<Link <Link
href="https://github.com/trezor/trezord-go/blob/master/CHANGELOG.md" href="https://github.com/trezor/trezord-go/blob/master/CHANGELOG.md"
target="_blank"
rel="noreferrer noopener"
isGreen isGreen
>Changelog >Changelog
</Link> </Link>
@ -193,8 +191,6 @@ class InstallBridge extends Component<Props, State> {
{target.signature && ( {target.signature && (
<Link <Link
href={this.state.uri + target.signature} href={this.state.uri + target.signature}
target="_blank"
rel="noreferrer noopener"
isGreen isGreen
>Check PGP signature >Check PGP signature
</Link> </Link>

@ -126,11 +126,9 @@ export default (props: Props) => {
<LandingFooterWrapper> <LandingFooterWrapper>
{isWebUSB(transport) && ( {isWebUSB(transport) && (
<P> <P>
<LandingFooterTextWrapper> <LandingFooterTextWrapper>Device not recognized?</LandingFooterTextWrapper>
Device not recognized?
</LandingFooterTextWrapper>
<StyledLink <StyledLink
href="#/bridge" to="/bridge"
isGreen isGreen
>Try installing the TREZOR Bridge. >Try installing the TREZOR Bridge.
</StyledLink> </StyledLink>
@ -142,8 +140,6 @@ export default (props: Props) => {
</LandingFooterTextWrapper> </LandingFooterTextWrapper>
<StyledLink <StyledLink
href="https://trezor.io/" href="https://trezor.io/"
target="_blank"
rel="noreferrer noopener"
isGreen isGreen
>Get one >Get one
</StyledLink> </StyledLink>

@ -155,8 +155,6 @@ class PendingTransactions extends Component<Props> {
<TransactionName> <TransactionName>
<StyledLink <StyledLink
href={`${this.props.network.explorer.tx}${tx.id}`} href={`${this.props.network.explorer.tx}${tx.id}`}
target="_blank"
rel="noreferrer noopener"
isGray isGray
> >
{this.getTransactionName(tx)} {this.getTransactionName(tx)}

@ -84,13 +84,7 @@ const AccountSummary = (props: Props) => {
<StyledCoinLogo coinNetwork={account.network} /> <StyledCoinLogo coinNetwork={account.network} />
<H2>Account #{parseInt(account.index, 10) + 1}</H2> <H2>Account #{parseInt(account.index, 10) + 1}</H2>
</AccountName> </AccountName>
<Link <Link href={explorerLink} isGray>See full transaction history</Link>
target="_blank"
rel="noreferrer noopener"
href={explorerLink}
isGray
>See full transaction history
</Link>
</AccountHeading> </AccountHeading>
<AccountBalance <AccountBalance
coin={network} coin={network}

@ -35,7 +35,7 @@ const Wrapper = styled.section`
height: 100%; height: 100%;
`; `;
const StyledNavLink = styled(NavLink)` const StyledNavLink = styled(Link)`
color: ${colors.TEXT_SECONDARY}; color: ${colors.TEXT_SECONDARY};
padding-top: 20px; padding-top: 20px;
font-size: ${FONT_SIZE.SMALL}; font-size: ${FONT_SIZE.SMALL};
@ -129,13 +129,11 @@ const FirmwareUpdate = (props: Props) => (
</Image> </Image>
<H1>Its time to update your firmware</H1> <H1>Its time to update your firmware</H1>
<StyledP>Please use the old wallet to do that.</StyledP> <StyledP>Please use the old wallet to do that.</StyledP>
<Link href="https://wallet.trezor.io" target="_blank"> <Link href="https://wallet.trezor.io">
<Button>Take me to the old wallet</Button> <Button>Take me to the old wallet</Button>
</Link> </Link>
{deviceUtils.isDeviceAccessible(props.device) && ( {deviceUtils.isDeviceAccessible(props.device) && (
<StyledNavLink to="/"> <StyledNavLink to="/">Ill do that later.</StyledNavLink>
Ill do that later.
</StyledNavLink>
)} )}
</Wrapper> </Wrapper>
); );

Loading…
Cancel
Save