feat: work shift pauses

This commit is contained in:
2024-12-04 11:02:32 +04:00
parent 900427275f
commit 1795cacc5b
15 changed files with 306 additions and 81 deletions

View File

@@ -45,7 +45,7 @@ export function ObjectStateToTableProps<T extends MRT_RowData>(
export const floatHoursToHoursAndMinutes = (hours: number): number[] => {
const resHours = Math.floor(hours);
const minutes = Math.round((hours - resHours) * 60);
const minutes = Math.floor((hours - resHours) * 60);
return [resHours, minutes];
};