Skip to content

Commit 000018f

Browse files
committed
remove leftover code
1 parent 5bdf533 commit 000018f

4 files changed

Lines changed: 31 additions & 83 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { ChainId } from '../../types/ChainId';
2+
import { shortenAddress } from '../../util/CommonUtils';
3+
import { getExplorerUrl } from '../../util/networks';
4+
import { ExternalLink } from '../common/ExternalLink';
5+
6+
export function BlockExplorerTokenLink({
7+
chainId,
8+
address,
9+
}: {
10+
chainId: ChainId;
11+
address: string | undefined;
12+
}) {
13+
if (typeof address === 'undefined') {
14+
return null;
15+
}
16+
17+
return (
18+
<ExternalLink
19+
href={`${getExplorerUrl(chainId)}/token/${address}`}
20+
className="arb-hover text-xs underline"
21+
onClick={(e) => e.stopPropagation()}
22+
>
23+
{shortenAddress(address).toLowerCase()}
24+
</ExternalLink>
25+
);
26+
}

packages/arb-token-bridge-ui/src/components/TransferPanel/TokenInfoTooltip.tsx

Lines changed: 0 additions & 73 deletions
This file was deleted.

packages/arb-token-bridge-ui/src/components/TransferPanel/TokenRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ import { getNetworkName } from '../../util/networks';
3131
import { SafeImage } from '../common/SafeImage';
3232
import { StatusBadge } from '../common/StatusBadge';
3333
import { Loader } from '../common/atoms/Loader';
34+
import { BlockExplorerTokenLink } from './BlockExplorerTokenLink';
3435
import { TokenLogoFallback } from './TokenInfo';
35-
import { BlockExplorerTokenLink } from './TokenInfoTooltip';
3636
import { useTokensFromLists } from './TokenSearchUtils';
3737

3838
function tokenListIdsToNames(ids: string[]): string {

yarn.lock

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6018,15 +6018,10 @@ camelize@^1.0.0:
60186018
resolved "https://registry.npmjs.org/camelize/-/camelize-1.0.1.tgz"
60196019
integrity sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==
60206020

6021-
caniuse-lite@^1.0.30001464, caniuse-lite@^1.0.30001579, caniuse-lite@^1.0.30001688:
6022-
version "1.0.30001717"
6023-
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001717.tgz"
6024-
integrity sha512-auPpttCq6BDEG8ZAuHJIplGw6GODhjw+/11e7IjpnYCxZcW/ONgPs0KVBJ0d1bY3e2+7PRe5RCLyP+PfwVgkYw==
6025-
6026-
caniuse-lite@^1.0.30001746:
6027-
version "1.0.30001749"
6028-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001749.tgz#21a43b923577932097fe32bcaabb6da7f4677632"
6029-
integrity sha512-0rw2fJOmLfnzCRbkm8EyHL8SvI2Apu5UbnQuTsJ0ClgrH8hcwFooJ1s5R0EP8o8aVrFu8++ae29Kt9/gZAZp/Q==
6021+
caniuse-lite@^1.0.30001464, caniuse-lite@^1.0.30001579, caniuse-lite@^1.0.30001688, caniuse-lite@^1.0.30001746:
6022+
version "1.0.30001769"
6023+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz"
6024+
integrity sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==
60306025

60316026
caseless@~0.12.0:
60326027
version "0.12.0"

0 commit comments

Comments
 (0)