From bcc4ac5905588139a7498fc5b5804ea9aa5f9591 Mon Sep 17 00:00:00 2001 From: Innocent-akim Date: Tue, 26 Nov 2024 05:39:14 +0200 Subject: [PATCH] fix:coderabbitai --- .../[memberId]/components/CalendarView.tsx | 7 +-- .../components/CompactTimesheetComponent.tsx | 45 ++++++++++--------- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/apps/web/app/[locale]/timesheet/[memberId]/components/CalendarView.tsx b/apps/web/app/[locale]/timesheet/[memberId]/components/CalendarView.tsx index 527ea561c..ca6cd2900 100644 --- a/apps/web/app/[locale]/timesheet/[memberId]/components/CalendarView.tsx +++ b/apps/web/app/[locale]/timesheet/[memberId]/components/CalendarView.tsx @@ -104,7 +104,7 @@ const CalendarDataView = ({ data, t }: { data?: GroupedTimesheet[], t: Translati
{task.employee.fullName}
@@ -125,7 +125,9 @@ const CalendarDataView = ({ data, t }: { data?: GroupedTimesheet[], t: Translati dash taskNumberClassName="text-sm" /> - {task.project && task.project.name} +
+ {task.project && task.project.name} +
))} @@ -134,7 +136,6 @@ const CalendarDataView = ({ data, t }: { data?: GroupedTimesheet[], t: Translati } - )} diff --git a/apps/web/app/[locale]/timesheet/[memberId]/components/CompactTimesheetComponent.tsx b/apps/web/app/[locale]/timesheet/[memberId]/components/CompactTimesheetComponent.tsx index 764a1e50e..03f80d818 100644 --- a/apps/web/app/[locale]/timesheet/[memberId]/components/CompactTimesheetComponent.tsx +++ b/apps/web/app/[locale]/timesheet/[memberId]/components/CompactTimesheetComponent.tsx @@ -7,26 +7,7 @@ export const EmployeeAvatar = ({ imageUrl }: { imageUrl: string }) => {
{isLoading && (
- - - - +
)} {
); }; + + +const LoadingSpinner = ({ className }: { className?: string }) => ( + + + + +);