chore: Update dependencies and remove sync-fetch from theme API

This commit is contained in:
Mauro Balades
2024-08-16 11:30:45 +02:00
parent 3fe12d8227
commit 510072baa3
5 changed files with 15 additions and 17 deletions

View File

@@ -5,11 +5,11 @@ import ThemePage from "@/components/theme-page";
import { getThemeFromId } from "@/lib/themes";
import { useParams } from "next/navigation";
export default function ThemeInfoPage() {
export default async function ThemeInfoPage() {
const params = useParams<{ theme: string }>();
const { theme: themeID } = params;
const theme = getThemeFromId(themeID);
const theme = await getThemeFromId(themeID);
if (!theme) {
return <div>Theme not found</div>;
}