File tree Expand file tree Collapse file tree 4 files changed +6
-9
lines changed
apps/dashboard/src/app/(app)
(dashboard)/(chain)/[chain_id] Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 11import { ImageResponse } from "next/og" ;
2- import { useId } from "react" ;
32import { download } from "thirdweb/storage" ;
43import { DASHBOARD_THIRDWEB_SECRET_KEY } from "@/constants/server-envs" ;
54import { getConfiguredThirdwebClient } from "@/constants/thirdweb.server" ;
@@ -18,8 +17,8 @@ export const size = {
1817export const contentType = "image/png" ;
1918
2019const TWLogo : React . FC = ( ) => {
21- const clipPathId = useId ( ) ;
22- const linearGradientId = useId ( ) ;
20+ const clipPathId = "og-tw-logo-clip-path" ;
21+ const linearGradientId = "og-tw-logo-linear-gradient" ;
2322 return (
2423 // biome-ignore lint/a11y/noSvgWithoutTitle: not needed
2524 < svg
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ export async function getContractUniqueWalletAnalytics(params: {
6767 }
6868
6969 const json = ( await res . json ( ) ) as InsightResponse ;
70- console . log ( "wallet analytics json" , json ) ;
7170 const aggregations = Object . values ( json . aggregations [ 0 ] ) ;
7271
7372 const returnValue : TransactionAnalyticsEntry [ ] = [ ] ;
Original file line number Diff line number Diff line change 11/* eslint-disable @next/next/no-img-element */
22import { ImageResponse } from "@vercel/og" ;
3- import { useId } from "react" ;
43import { getContractMetadata } from "thirdweb/extensions/common" ;
54import { isProd } from "@/constants/env-utils" ;
65import { API_ROUTES_CLIENT_ID } from "@/constants/server-envs" ;
@@ -62,8 +61,9 @@ function shortenString(str: string) {
6261 return `${ str . substring ( 0 , 7 ) } ...${ str . substring ( str . length - 5 ) } ` ;
6362}
6463
64+ const gradientId = "og-brand-icon-gradient" ;
65+
6566const OgBrandIcon : React . FC = ( ) => {
66- const gradientId = useId ( ) ;
6767 return (
6868 // biome-ignore lint/a11y/noSvgWithoutTitle: not needed
6969 < svg
Original file line number Diff line number Diff line change 11import { ImageResponse } from "next/og" ;
2- import { useId } from "react" ;
32import { download } from "thirdweb/storage" ;
43import { DASHBOARD_THIRDWEB_SECRET_KEY } from "@/constants/server-envs" ;
54import { getConfiguredThirdwebClient } from "@/constants/thirdweb.server" ;
@@ -19,8 +18,8 @@ export const size = {
1918export const contentType = "image/png" ;
2019
2120const TWLogo : React . FC = ( ) => {
22- const cipId = useId ( ) ;
23- const linearGradientId = useId ( ) ;
21+ const cipId = "og-tw-logo-clip-path" ;
22+ const linearGradientId = "og-tw-logo-linear-gradient" ;
2423
2524 return (
2625 // biome-ignore lint/a11y/noSvgWithoutTitle: not needed
You can’t perform that action at this time.
0 commit comments