chore: Remove unused code and dependencies

This commit is contained in:
mauro-balades
2024-08-27 16:31:58 +02:00
parent a76e74c0e7
commit a3cf78d83a
6 changed files with 19 additions and 25 deletions

View File

@@ -6,11 +6,8 @@ import { useEffect, useState } from "react";
import Markdown from "react-markdown";
import '../app/privacy-policy/markdown.css';
import { ChevronLeft, LoaderCircleIcon } from "lucide-react";
import { useParams } from "next/navigation";
export default async function ThemePage() {
const params = useParams<{ theme: string }>();
const { theme: themeID } = params;
export default async function ThemePage({ themeID }: { themeID: string }) {
const theme = await getThemeFromId(themeID);
if (!theme) {