- Updated localization files for various languages, including English, German, Spanish, Portuguese, and Chinese, to ensure consistency and accuracy across the application. - Added new keys and updated existing ones to support recent UI changes and features, particularly in project views, task lists, and admin center settings. - Enhanced the structure of localization files to improve maintainability and facilitate future updates. - Implemented performance optimizations in the frontend components to better handle localization data.
30 lines
782 B
TypeScript
30 lines
782 B
TypeScript
import React from 'react';
|
|
import TaskTimer from '@/components/taskListCommon/task-timer/task-timer';
|
|
import { useTaskTimer } from '@/hooks/useTaskTimer';
|
|
|
|
interface TaskTimeTrackingProps {
|
|
taskId: string;
|
|
isDarkMode: boolean;
|
|
}
|
|
|
|
const TaskTimeTracking: React.FC<TaskTimeTrackingProps> = React.memo(({ taskId, isDarkMode }) => {
|
|
const { started, timeString, handleStartTimer, handleStopTimer } = useTaskTimer(
|
|
taskId,
|
|
null // The hook will get the timer start time from Redux
|
|
);
|
|
|
|
return (
|
|
<TaskTimer
|
|
taskId={taskId}
|
|
started={started}
|
|
handleStartTimer={handleStartTimer}
|
|
handleStopTimer={handleStopTimer}
|
|
timeString={timeString}
|
|
/>
|
|
);
|
|
});
|
|
|
|
TaskTimeTracking.displayName = 'TaskTimeTracking';
|
|
|
|
export default TaskTimeTracking;
|