Skip to content

Commit acd76a6

Browse files
fix table icons
1 parent 86b7b35 commit acd76a6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

apps/dashboard/src/app/team/[team_slug]/[project_slug]/engine/analytics/tx-table/tx-table-ui.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import { useAllChainsData } from "hooks/chains/allChains";
3434
import { ExternalLinkIcon, InfoIcon } from "lucide-react";
3535
import Link from "next/link";
3636
import { useState } from "react";
37+
import { useThirdwebClient } from "../../../../../../../@/constants/thirdweb.client";
3738
import { ChainIconClient } from "../../../../../../../components/icons/ChainIcon";
3839
import type { Wallet } from "../../server-wallets/wallet-table/types";
3940
import type {
@@ -281,7 +282,7 @@ function SkeletonRow() {
281282
function TxChainCell(props: { chainId: string | undefined }) {
282283
const { chainId } = props;
283284
const { idToChain } = useAllChainsData();
284-
285+
const thirdwebClient = useThirdwebClient();
285286
if (!chainId) {
286287
return "N/A";
287288
}
@@ -294,7 +295,11 @@ function TxChainCell(props: { chainId: string | undefined }) {
294295

295296
return (
296297
<div className="flex items-center gap-2">
297-
<ChainIconClient className="size-5" ipfsSrc={chain.icon?.url} />
298+
<ChainIconClient
299+
className="size-5"
300+
client={thirdwebClient}
301+
src={chain.icon?.url}
302+
/>
298303
<div className="max-w-[150px] truncate">
299304
{chain.name ?? `Chain ID: ${chainId}`}
300305
</div>

apps/dashboard/src/app/team/[team_slug]/[project_slug]/engine/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function TransactionsLayout(props: {
7878
scrollableClassName="container max-w-7xl"
7979
links={[
8080
{
81-
name: "Analytics",
81+
name: "Transactions",
8282
path: `${engineLayoutSlug}`,
8383
exactMatch: true,
8484
},

0 commit comments

Comments
 (0)