Skip to content

Commit

Permalink
fix(suite): use TrezorLink in IOAddress to handle tor properly
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Jan 28, 2025
1 parent f3caf8f commit 74a5713
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/suite/src/components/suite/copy/IOAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import { useState } from 'react';

import styled, { css, useTheme } from 'styled-components';

import { Icon, Link, Text } from '@trezor/components';
import { Icon, Text } from '@trezor/components';
import { copyToClipboard } from '@trezor/dom-utils';

import { HiddenPlaceholder } from 'src/components/suite/HiddenPlaceholder';
import { TrezorLink } from 'src/components/suite/TrezorLink';

const IconWrapper = styled.div`
display: none;
Expand Down Expand Up @@ -124,13 +125,13 @@ export const IOAddress = ({
) : null}
{explorerUrl ? (
<IconWrapper>
<Link
<TrezorLink
typographyStyle="label"
variant="nostyle"
href={`${explorerUrl}${txAddress}${explorerUrlQueryString}`}
>
<Icon name="arrowUpRight" size={12} color={theme.iconOnPrimary} />
</Link>
</TrezorLink>
</IconWrapper>
) : null}
</TextOverflowContainer>
Expand Down

0 comments on commit 74a5713

Please sign in to comment.