From b743c9609fcb83f6b471e1e6cbc3b36078acd29e Mon Sep 17 00:00:00 2001 From: Innocent-akim Date: Thu, 12 Dec 2024 21:01:55 +0200 Subject: [PATCH] coderabbitai --- .../timesheet/[memberId]/components/SelectionBar.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/web/app/[locale]/timesheet/[memberId]/components/SelectionBar.tsx b/apps/web/app/[locale]/timesheet/[memberId]/components/SelectionBar.tsx index 73d33112e..3f4a0d28f 100644 --- a/apps/web/app/[locale]/timesheet/[memberId]/components/SelectionBar.tsx +++ b/apps/web/app/[locale]/timesheet/[memberId]/components/SelectionBar.tsx @@ -1,7 +1,12 @@ import { cn } from "@/lib/utils"; import { useTranslations } from "next-intl"; -const ActionButton = ({ label, onClick }: { label: string; onClick?: () => void }) => ( +type ActionButtonProps = { + label: string; + onClick?: (event: React.MouseEvent) => void; +}; + +const ActionButton = ({ label, onClick }: ActionButtonProps) => (