@@ -28,6 +28,7 @@ import config from 'configs/app';
2828import { WEI , WEI_IN_GWEI } from 'lib/consts' ;
2929import { useArweaveId } from 'lib/hooks/useArweaveId' ;
3030import { useBlobScan } from 'lib/hooks/useBlobScan' ;
31+ import { useTxTags } from 'lib/hooks/useTxTags' ;
3132import { useWvmArchiver } from 'lib/hooks/useWvmArchiver' ;
3233import getNetworkValidatorTitle from 'lib/networks/getNetworkValidatorTitle' ;
3334import getConfirmationDuration from 'lib/tx/getConfirmationDuration' ;
@@ -50,6 +51,7 @@ import RawInputData from 'ui/shared/RawInputData';
5051import BlobScanTag from 'ui/shared/statusTag/BlobScanTag' ;
5152import TxStatus from 'ui/shared/statusTag/TxStatus' ;
5253import WvmArchiverTag from 'ui/shared/statusTag/WvmArchiverTag' ;
54+ import WvmTxTag from 'ui/shared/statusTag/WvmTxTag' ;
5355import TextSeparator from 'ui/shared/TextSeparator' ;
5456import TxFeeStability from 'ui/shared/tx/TxFeeStability' ;
5557import Utilization from 'ui/shared/Utilization/Utilization' ;
@@ -88,6 +90,13 @@ const TxInfo = ({ data, isLoading, socketStatus }: Props) => {
8890 block : data ?. block ,
8991 } ) ;
9092
93+ const { data : txTags , isLoading : isTxTagsLoading } = useTxTags ( {
94+ txHash : data ?. hash ,
95+ } ) ;
96+
97+ // eslint-disable-next-line no-console
98+ console . log ( 'txTags' , txTags ) ;
99+
91100 const truncateArweaveId = ( address : string ) => {
92101 const start = address . slice ( 0 , 28 ) ;
93102 const end = address . slice ( - 4 ) ;
@@ -509,7 +518,28 @@ const TxInfo = ({ data, isLoading, socketStatus }: Props) => {
509518 < Skeleton > loading...</ Skeleton >
510519 ) }
511520
512- < DetailsInfoItemDivider />
521+ { txTags ? (
522+ < >
523+ < DetailsInfoItemDivider />
524+ < DetailsInfoItem . Label
525+ hint = "The transaction tags associated with the transaction"
526+ isLoading = { isTxTagsLoading }
527+ >
528+ Tags
529+ </ DetailsInfoItem . Label >
530+ < Box display = "flex" flexDir = "column" gap = { 2 } >
531+ { txTags . map ( ( tag : [ string , string ] ) => (
532+ < Box key = { tag [ 0 ] } display = "flex" >
533+ < Box minWidth = "120px" flexShrink = { 0 } >
534+ < WvmTxTag tag = { tag [ 0 ] } />
535+ </ Box >
536+ < Text flexGrow = { 1 } wordBreak = "break-word" > { tag [ 1 ] } </ Text >
537+ </ Box >
538+ ) ) }
539+ </ Box >
540+ < DetailsInfoItemDivider />
541+ </ >
542+ ) : null }
513543
514544 < TxDetailsActions
515545 hash = { data . hash }
0 commit comments