From 169a2ea07a0e457f0f785444a0fe54c25d19c129 Mon Sep 17 00:00:00 2001 From: AKILIMAILI CIZUNGU Innocent <51681130+Innocent-Akim@users.noreply.github.com> Date: Sat, 30 Nov 2024 21:41:01 +0200 Subject: [PATCH 1/3] Feat(timesheet): Add TimesheetDetailModal for displaying pending (#3382) * feat(timesheet): add TimesheetDetailModal for displaying pending timesheet details * fix: coderabbitai --- .../[memberId]/components/CalendarView.tsx | 2 +- .../[memberId]/components/TimesheetCard.tsx | 119 +++++++++++++++++- .../components/TimesheetDetailModal.tsx | 41 ++++++ .../[locale]/timesheet/[memberId]/page.tsx | 27 +++- apps/web/app/hooks/features/useTimesheet.ts | 3 +- .../calendar/table-time-sheet.tsx | 2 +- 6 files changed, 187 insertions(+), 7 deletions(-) create mode 100644 apps/web/app/[locale]/timesheet/[memberId]/components/TimesheetDetailModal.tsx diff --git a/apps/web/app/[locale]/timesheet/[memberId]/components/CalendarView.tsx b/apps/web/app/[locale]/timesheet/[memberId]/components/CalendarView.tsx index ca6cd2900..584cf19df 100644 --- a/apps/web/app/[locale]/timesheet/[memberId]/components/CalendarView.tsx +++ b/apps/web/app/[locale]/timesheet/[memberId]/components/CalendarView.tsx @@ -10,7 +10,7 @@ import { EmployeeAvatar } from "./CompactTimesheetComponent"; import { formatDate } from "@/app/helpers"; import { ClockIcon } from "lucide-react"; -export function CalendarView({ data }: { data?: GroupedTimesheet[] }) { +export function CalendarView({ data, loading }: { data?: GroupedTimesheet[], loading: boolean }) { const t = useTranslations(); return (
{t('pages.timesheet.NO_ENTRIES_FOUND')}
+