tududi/frontend/components/Task/TaskForm/TaskDueDateSection.tsx
Chris eb10ea8355
Fix redesign recurring tasks (#582)
* Break down TaskModal

* Fix an issue with counting past times

* Add daily reccurence on week

* fixup! Add daily reccurence on week

* fixup! fixup! Add daily reccurence on week

* Improve recurring widget on task page

* fixup! Improve recurring widget on task page
2025-11-19 17:03:26 +02:00

26 lines
606 B
TypeScript

import React from 'react';
import DatePicker from '../../Shared/DatePicker';
interface TaskDueDateSectionProps {
value: string;
onChange: (value: string) => void;
placeholder?: string;
}
const TaskDueDateSection: React.FC<TaskDueDateSectionProps> = ({
value,
onChange,
placeholder = 'Select due date',
}) => {
return (
<div className="overflow-visible">
<DatePicker
value={value || ''}
onChange={onChange}
placeholder={placeholder}
/>
</div>
);
};
export default TaskDueDateSection;