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 27, 2025
1 parent 6bcde70 commit faf87f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/suite/src/components/suite/copy/IOAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ 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 '../TrezorLink';

const IconWrapper = styled.div`
display: none;
padding: 1px;
Expand Down Expand Up @@ -124,13 +126,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 faf87f8

Please sign in to comment.