Commit 362605b 1 parent e420dd9 commit 362605b Copy full SHA for 362605b
File tree 2 files changed +5
-3
lines changed
packages/app-explorer/src/systems
Transaction/component/TxScripts
Transactions/components/TxCard
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- import { ReceiptType } from '@fuel-explorer/graphql' ;
1
+ import { ReceiptType } from '@fuel-explorer/graphql/src/sdk ' ;
2
2
import type {
3
3
Maybe ,
4
4
OperationReceipt ,
5
5
TransactionReceiptFragment ,
6
- } from '@fuel-explorer/graphql' ;
6
+ } from '@fuel-explorer/graphql/src/sdk ' ;
7
7
import type { BaseProps } from '@fuels/ui' ;
8
8
import {
9
9
Address ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { IconGasStation } from '@tabler/icons-react';
14
14
import Link from 'next/link' ;
15
15
import { Routes } from '~/routes' ;
16
16
17
+ import { isValidAddress } from '~/systems/Core/utils/address' ;
17
18
import { TX_INTENT_MAP } from '../../../Transaction/component/TxIcon/TxIcon' ;
18
19
import type { TransactionNode } from '../../../Transaction/types' ;
19
20
@@ -29,9 +30,10 @@ export function TxCard({
29
30
...props
30
31
} : TxCardProps ) {
31
32
const fee = bn ( tx . fee ) ;
33
+ const isValidTxID = isValidAddress ( tx . id ) ;
32
34
33
35
return (
34
- < Link scroll = { true } href = { Routes . txSimple ( tx . id ) } >
36
+ < Link scroll = { true } href = { Routes . txSimple ( tx . id ) } prefetch = { isValidTxID } >
35
37
< Card { ...props } className = { cx ( className ) } >
36
38
< Card . Body className = "flex flex-col gap-4 laptop:flex-row laptop:justify-between" >
37
39
< Box className = "flex gap-3 h-[26px]" >
You can’t perform that action at this time.
0 commit comments