@@ -18,7 +18,9 @@ import {
1818} from "../../../../../../components/ui/Table" ;
1919import { TruncatedHex } from "../../../../../../components/ui/TruncatedHex" ;
2020import { cn } from "../../../../../../utils" ;
21+ import { useChain } from "../../../../hooks/useChain" ;
2122import { useTransactionsQuery } from "../../../../queries/useTransactionsQuery" ;
23+ import { indexerForChainId } from "../../../../utils/indexerForChainId" ;
2224import { BlockExplorerLink } from "./BlockExplorerLink" ;
2325import { TimeAgo } from "./TimeAgo" ;
2426import { TimingRowHeader } from "./TimingRowHeader" ;
@@ -113,6 +115,8 @@ export const columns = [
113115
114116export function TransactionsTable ( ) {
115117 const { ref, inView } = useInView ( ) ;
118+ const { id : chainId } = useChain ( ) ;
119+ const indexer = indexerForChainId ( chainId ) ;
116120 const transactions = useMergedTransactions ( ) ;
117121 const { isLoading, fetchNextPage } = useTransactionsQuery ( ) ;
118122 const [ expanded , setExpanded ] = useState < ExpandedState > ( { } ) ;
@@ -165,26 +169,28 @@ export function TransactionsTable() {
165169 ) }
166170 </ TableBody >
167171
168- < TableFooter
169- className = { cn ( "border-t-transparent bg-transparent hover:bg-transparent" , { "border-t-muted" : ! isLoading } ) }
170- >
171- < TableRow >
172- < TableCell colSpan = { columns . length } >
173- < div
174- ref = { ref }
175- className = { cn (
176- "hidden items-center justify-center gap-3 py-4 font-mono text-xs font-bold uppercase text-muted-foreground" ,
177- {
178- flex : ! isLoading ,
179- } ,
180- ) }
181- >
182- < span className = "inline-block h-1.5 w-1.5 animate-ping rounded-full bg-muted-foreground" />
183- Loading more transactions...
184- </ div >
185- </ TableCell >
186- </ TableRow >
187- </ TableFooter >
172+ { indexer . type === "hosted" && (
173+ < TableFooter
174+ className = { cn ( "border-t-transparent bg-transparent hover:bg-transparent" , { "border-t-muted" : ! isLoading } ) }
175+ >
176+ < TableRow >
177+ < TableCell colSpan = { columns . length } >
178+ < div
179+ ref = { ref }
180+ className = { cn (
181+ "hidden items-center justify-center gap-3 py-4 font-mono text-xs font-bold uppercase text-muted-foreground" ,
182+ {
183+ flex : ! isLoading ,
184+ } ,
185+ ) }
186+ >
187+ < span className = "inline-block h-1.5 w-1.5 animate-ping rounded-full bg-muted-foreground" />
188+ Loading more transactions...
189+ </ div >
190+ </ TableCell >
191+ </ TableRow >
192+ </ TableFooter >
193+ ) }
188194 </ Table >
189195 ) ;
190196}
0 commit comments