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) => (
<Wrapper>
<Copy title={window.COMMITHASH}>&copy; {getYear(new Date())}</Copy>
<StyledLink href="http://satoshilabs.com" target="_blank" rel="noreferrer noopener" isGreen>SatoshiLabs</StyledLink>
<StyledLink href="/assets/tos.pdf" target="_blank" rel="noreferrer noopener" isGreen>Terms</StyledLink>
<StyledLink href="http://satoshilabs.com" isGreen>SatoshiLabs</StyledLink>
<StyledLink href="/assets/tos.pdf" isGreen>Terms</StyledLink>
<StyledLink onClick={toggle} isGreen>{ opened ? 'Hide Log' : 'Show Log' }</StyledLink>
</Wrapper>
);

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

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

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

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

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

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

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

@ -35,7 +35,7 @@ const Wrapper = styled.section`
height: 100%;
`;
const StyledNavLink = styled(NavLink)`
const StyledNavLink = styled(Link)`
color: ${colors.TEXT_SECONDARY};
padding-top: 20px;
font-size: ${FONT_SIZE.SMALL};
@ -129,13 +129,11 @@ const FirmwareUpdate = (props: Props) => (
</Image>
<H1>Its time to update your firmware</H1>
<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>
</Link>
{deviceUtils.isDeviceAccessible(props.device) && (
<StyledNavLink to="/">
Ill do that later.
</StyledNavLink>
<StyledNavLink to="/">Ill do that later.</StyledNavLink>
)}
</Wrapper>
);

Loading…
Cancel
Save