* 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
26 lines
606 B
TypeScript
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;
|