diff --git a/apps/web/app/[locale]/timesheet/[memberId]/components/CompactTimesheetComponent.tsx b/apps/web/app/[locale]/timesheet/[memberId]/components/CompactTimesheetComponent.tsx index 9c2d2ffa6..b2a3232de 100644 --- a/apps/web/app/[locale]/timesheet/[memberId]/components/CompactTimesheetComponent.tsx +++ b/apps/web/app/[locale]/timesheet/[memberId]/components/CompactTimesheetComponent.tsx @@ -27,7 +27,7 @@ const ImageWithLoader = ({ imageUrl, alt, className = "w-6 h-6 rounded-full" }: { imageUrl: string; alt: string; className?: string }) => { const [isLoading, setIsLoading] = React.useState(true); return ( -
+
{isLoading && (
@@ -44,8 +44,8 @@ const ImageWithLoader = ({ imageUrl, alt, className = "w-6 h-6 rounded-full" }: ); }; -export const EmployeeAvatar = ({ imageUrl }: { imageUrl: string }) => ( - +export const EmployeeAvatar = ({ imageUrl, className }: { imageUrl: string, className?: string }) => ( + ); diff --git a/apps/web/app/[locale]/timesheet/[memberId]/components/TimesheetDetailModal.tsx b/apps/web/app/[locale]/timesheet/[memberId]/components/TimesheetDetailModal.tsx index bde7f4a2a..78ce426b7 100644 --- a/apps/web/app/[locale]/timesheet/[memberId]/components/TimesheetDetailModal.tsx +++ b/apps/web/app/[locale]/timesheet/[memberId]/components/TimesheetDetailModal.tsx @@ -9,7 +9,7 @@ import { cn } from '@/lib/utils'; import { useTimesheet } from '@/app/hooks/features/useTimesheet'; import { Badge } from '@components/ui/badge'; import { TaskNameInfoDisplay, TotalTimeDisplay } from '@/lib/features'; -import { ProjectLogo } from './CompactTimesheetComponent'; +import { EmployeeAvatar, ProjectLogo } from './CompactTimesheetComponent'; export interface IAddTaskModalProps { isOpen: boolean; @@ -115,7 +115,7 @@ const MembersWorkedCard = ({ element, t }: { element: TimesheetLog[], t: Transla >
- + {timesheet.element[0].employee.fullName}
0 && - !!hasPlan?.tasks?.every((task) => task.estimate && task.estimate > 0) + hasPlan?.workTimePlanned > 0 && + !!hasPlan?.tasks?.every((task) => task.estimate && task.estimate > 0) : true; const canRunTimer = diff --git a/apps/web/lib/features/integrations/calendar/table-time-sheet.tsx b/apps/web/lib/features/integrations/calendar/table-time-sheet.tsx index e54ff095f..1e3d4e169 100644 --- a/apps/web/lib/features/integrations/calendar/table-time-sheet.tsx +++ b/apps/web/lib/features/integrations/calendar/table-time-sheet.tsx @@ -295,7 +295,7 @@ export function DataTableTimeSheet({ data, user }: { data?: GroupedTimesheet[],
{t('timer.TOTAL_HOURS').split(' ')[0]}: