From 20bee5a66131d87551e67e6de7d52954481ec4b3 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Sat, 21 Feb 2026 14:46:12 +0100 Subject: [PATCH] Fix pre-existing TypeScript errors - ExceptionModal: cast Zod v4 schema with `as any` to satisfy @hookform/resolvers v5 type definitions - TopBar: wrap logout mutate call in arrow function to match MouseEventHandler type Co-Authored-By: Claude Opus 4.6 --- apps/main/src/components/ExceptionModal.tsx | 3 ++- apps/main/src/components/TopBar.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/main/src/components/ExceptionModal.tsx b/apps/main/src/components/ExceptionModal.tsx index 2ef661d..65acae3 100644 --- a/apps/main/src/components/ExceptionModal.tsx +++ b/apps/main/src/components/ExceptionModal.tsx @@ -41,7 +41,8 @@ export const ExceptionModal = ({ }) => { const { t } = useTranslation("components"); const form = useForm>({ - resolver: zodResolver(formSchema), + // eslint-disable-next-line @typescript-eslint/no-explicit-any + resolver: zodResolver(formSchema as any), defaultValues: { exceptionType: "day", exceptionDate: new Date(), diff --git a/apps/main/src/components/TopBar.tsx b/apps/main/src/components/TopBar.tsx index 51ebd40..22d6f64 100644 --- a/apps/main/src/components/TopBar.tsx +++ b/apps/main/src/components/TopBar.tsx @@ -311,7 +311,7 @@ function ProfileDropdown() { logout()} > {t("userMenu.logout")}