Skip to content

Commit 20190ba

Browse files
committed
Move metadata out of client component in Stats page
1 parent 54048fd commit 20190ba

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { getMetadata } from "~~/utils/scaffold-eth/getMetadata";
2+
3+
export const metadata = getMetadata({
4+
title: "Stats",
5+
description: "Check out the stats for the BuidlGuidl CTF",
6+
});
7+
8+
export default function StatsLayout({ children }: { children: React.ReactNode }) {
9+
return children;
10+
}

packages/nextjs/app/stats/page.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,10 @@
22

33
import { useQuery } from "@tanstack/react-query";
44
import type { NextPage } from "next";
5-
import { getMetadata } from "~~/utils/scaffold-eth/getMetadata";
65

76
const thStyles = "whitespace-nowrap px-3 py-3.5";
87
const tdStyles = "whitespace-nowrap px-3 py-4";
98

10-
export const metadata = getMetadata({
11-
title: "Stats",
12-
description: "Check out the stats for the BuidlGuidl CTF",
13-
});
14-
159
const Stats: NextPage = () => {
1610
const {
1711
isPending,

0 commit comments

Comments
 (0)