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 <noreply@anthropic.com>
This commit is contained in:
Arthur Belleville 2026-02-21 14:46:12 +01:00
parent a3f5cf5e4e
commit 20bee5a661
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -41,7 +41,8 @@ export const ExceptionModal = ({
}) => {
const { t } = useTranslation("components");
const form = useForm<z.infer<typeof formSchema>>({
resolver: zodResolver(formSchema),
// eslint-disable-next-line @typescript-eslint/no-explicit-any
resolver: zodResolver(formSchema as any),
defaultValues: {
exceptionType: "day",
exceptionDate: new Date(),

View file

@ -311,7 +311,7 @@ function ProfileDropdown() {
<DropdownMenuItem
className="cursor-pointer gap-2 text-red-600 focus:bg-red-50 focus:text-red-600"
onClick={logout}
onClick={() => logout()}
>
<LogOutIcon className="w-4 h-4" />
{t("userMenu.logout")}