diff --git a/src/app/api/get-theme/route.ts b/src/app/api/get-theme/route.ts index 9421643..900730d 100644 --- a/src/app/api/get-theme/route.ts +++ b/src/app/api/get-theme/route.ts @@ -11,6 +11,12 @@ function getQSParamFromURL( return urlParams.get(key); } +function removeUneccessaryKeys(theme: any) { + delete theme["isDarkMode"]; + delete theme["isColorTheme"]; + return theme; +} + export async function GET(request: Request, response: Response) { const id = getQSParamFromURL("id", request.url); if (!id) { @@ -20,5 +26,5 @@ export async function GET(request: Request, response: Response) { if (!theme) { return Response.json({ error: "theme not found" }); } - return Response.json( theme ); + return Response.json(removeUneccessaryKeys(theme)); } \ No newline at end of file diff --git a/src/components/navigation.tsx b/src/components/navigation.tsx index 5eb4ad8..e74c052 100644 --- a/src/components/navigation.tsx +++ b/src/components/navigation.tsx @@ -93,7 +93,7 @@ export function Navigation() { - + Donate