diff --git a/apps/dashboard/next-env.d.ts b/apps/dashboard/next-env.d.ts index 725dd6f2451..3cd7048ed94 100644 --- a/apps/dashboard/next-env.d.ts +++ b/apps/dashboard/next-env.d.ts @@ -3,4 +3,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. +// see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index 4862744e870..ca3d5ef9f6f 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "preinstall": "npx only-allow pnpm", - "dev": "next dev", + "dev": "next dev --turbo", "build": "NODE_OPTIONS=--max-old-space-size=6144 next build", "start": "next start", "format": "biome format ./src --write", diff --git a/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/ProfileUI.tsx b/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/ProfileUI.tsx index 3c54a8870b5..e76688122de 100644 --- a/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/ProfileUI.tsx +++ b/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/ProfileUI.tsx @@ -14,7 +14,7 @@ export function ProfileUI(props: { return (
- +
diff --git a/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/components/profile-header.tsx b/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/components/profile-header.tsx index 36e6d6d2b6b..fb2dd1103c7 100644 --- a/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/components/profile-header.tsx +++ b/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/components/profile-header.tsx @@ -12,7 +12,10 @@ import { } from "thirdweb/react"; import { shortenIfAddress } from "utils/usedapp-external"; -export function ProfileHeader(props: { profileAddress: string }) { +export function ProfileHeader(props: { + profileAddress: string; + ensName: string | undefined; +}) { const client = useThirdwebClient(); return ( @@ -27,17 +30,22 @@ export function ProfileHeader(props: { profileAddress: string }) { />

- - shortenIfAddress(replaceDeployerAddress(addr)) - } - /> - } - loadingComponent={} - formatFn={(name) => replaceDeployerAddress(name)} - /> + {/* if we already have an ensName just use it */} + {props.ensName ? ( + props.ensName + ) : ( + + shortenIfAddress(replaceDeployerAddress(addr)) + } + /> + } + loadingComponent={} + formatFn={(name) => replaceDeployerAddress(name)} + /> + )}

diff --git a/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/page.tsx b/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/page.tsx index f9c5ef1a707..173bdc95b93 100644 --- a/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/page.tsx +++ b/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/page.tsx @@ -21,7 +21,7 @@ export default async function Page(props: PageProps) { return ( );