From ea1181af42beb6d3bcd5f0ac87c281be4a1d9c38 Mon Sep 17 00:00:00 2001 From: Tim Ittermann Date: Mon, 5 Aug 2024 13:08:04 +0200 Subject: [PATCH] fix: build errors --- src/app/[locale]/(userArea)/profile/SelectableTheme.tsx | 2 +- src/app/[locale]/(userArea)/profile/layout.tsx | 2 +- src/components/common/Footer.tsx | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/[locale]/(userArea)/profile/SelectableTheme.tsx b/src/app/[locale]/(userArea)/profile/SelectableTheme.tsx index a4a2523..f53753f 100644 --- a/src/app/[locale]/(userArea)/profile/SelectableTheme.tsx +++ b/src/app/[locale]/(userArea)/profile/SelectableTheme.tsx @@ -13,7 +13,7 @@ export const SelectableTheme: FC<{ theme: string; active: boolean }> = ({ className="theme-controller btn join-item" aria-label={theme} checked={active} - onChange={(e) => setThemeAction(theme)} + onChange={() => setThemeAction(theme)} value={theme} /> ); diff --git a/src/app/[locale]/(userArea)/profile/layout.tsx b/src/app/[locale]/(userArea)/profile/layout.tsx index 55fd780..6706f0f 100644 --- a/src/app/[locale]/(userArea)/profile/layout.tsx +++ b/src/app/[locale]/(userArea)/profile/layout.tsx @@ -2,7 +2,7 @@ import { Heading } from "@/components/common/Heading"; import { getScopedI18n } from "@/locales/server"; import { getRoute } from "@/routes"; import Link from "next/link"; -import { ReactElement } from "react"; +import type { ReactElement } from "react"; export default async function ProfileLayout({ children, diff --git a/src/components/common/Footer.tsx b/src/components/common/Footer.tsx index d83087e..971332e 100644 --- a/src/components/common/Footer.tsx +++ b/src/components/common/Footer.tsx @@ -1,3 +1,5 @@ +/* eslint-disable @next/next/no-img-element */ +/* We are using an SVG to show the github stars. Therefor we use the img tag */ import { getScopedI18n } from "@/locales/server"; import { env } from "../../env/client.mjs";