Time estimate card: fix date values
This commit is contained in:
@@ -6,16 +6,10 @@ import Content from "pages/cart/components/timeEstimate/Content.tsx";
|
||||
interface EstimateTimeDialogProps {
|
||||
isOpen: boolean;
|
||||
onClose: () => void;
|
||||
onSave: (date: Date, time: string) => void;
|
||||
initialDate?: Date;
|
||||
onSave: (date: string, time: string) => void;
|
||||
}
|
||||
|
||||
export function Dialog({
|
||||
isOpen,
|
||||
onClose,
|
||||
onSave,
|
||||
initialDate = new Date(),
|
||||
}: EstimateTimeDialogProps) {
|
||||
export function Dialog({ isOpen, onClose, onSave }: EstimateTimeDialogProps) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
@@ -27,7 +21,7 @@ export function Dialog({
|
||||
width={500}
|
||||
destroyOnHidden
|
||||
>
|
||||
<Content onSave={onSave} initialDate={initialDate} onClose={onClose} />
|
||||
<Content onSave={onSave} onClose={onClose} />
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user