Skip to content

Commit

Permalink
Remove use client, metas
Browse files Browse the repository at this point in the history
  • Loading branch information
carletex committed Sep 5, 2024
1 parent 118ee69 commit d50a1eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use client";

import { Address } from "~~/components/scaffold-eth";
import { Submission } from "~~/services/database/repositories/submissions";

Expand Down
10 changes: 8 additions & 2 deletions packages/nextjs/app/submissions/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { SubmissionCard } from "./_components/SubmissionCard";
import type { NextPage } from "next";
import { getAllSubmissions } from "~~/services/database/repositories/submissions";
import { getMetadata } from "~~/utils/scaffold-eth/getMetadata";

const Admin: NextPage = async () => {
export const metadata = getMetadata({
title: "Submissions",
description: "Check all the submissions for the SE-2 extensions hackathon.",
});

const Submissions: NextPage = async () => {
const submissions = await getAllSubmissions();

return (
Expand All @@ -21,4 +27,4 @@ const Admin: NextPage = async () => {
);
};

export default Admin;
export default Submissions;
2 changes: 1 addition & 1 deletion packages/nextjs/utils/scaffold-eth/getMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Metadata } from "next";
const baseUrl = process.env.VERCEL_PROJECT_PRODUCTION_URL
? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
: `http://localhost:${process.env.PORT || 3000}`;
const titleTemplate = "%s | Scaffold-ETH 2";
const titleTemplate = "%s | Extensions Hackathon";

export const getMetadata = ({
title,
Expand Down

0 comments on commit d50a1eb

Please sign in to comment.