chore: Remove unused code and fix theme page rendering

This commit is contained in:
Mauro Balades
2024-08-25 00:01:09 +02:00
parent cdf6216d79
commit 0e33427289
2 changed files with 12 additions and 12 deletions

View File

@@ -4,7 +4,6 @@ import { Navigation } from "@/components/navigation";
import ThemePage from "@/components/theme-page";
import { getThemeFromId } from "@/lib/themes";
import { Metadata, ResolvingMetadata } from "next";
import { useParams } from "next/navigation";
export async function generateMetadata(
{ params, searchParams }: any,
@@ -38,17 +37,9 @@ export async function generateMetadata(
}
export default async function ThemeInfoPage() {
const params = useParams<{ theme: string }>();
const { theme: themeID } = params;
const theme = await getThemeFromId(themeID);
if (!theme) {
return <div>Theme not found</div>;
}
return (
<main className="flex min-h-screen flex-col items-center justify-start">
<ThemePage theme={theme} />
<ThemePage />
<Footer />
<Navigation /> {/* At the bottom of the page */}
</main>