Time estimate card: fix date values

This commit is contained in:
2025-11-13 16:43:15 +03:00
parent 529893be8b
commit 590cc2c5e9
6 changed files with 64 additions and 61 deletions

View File

@@ -5,15 +5,13 @@ import { useTranslation } from "react-i18next";
interface EstimateTimeBottomSheetProps {
isOpen: boolean;
onClose: () => void;
onSave: (date: Date, time: string) => void;
initialDate?: Date;
onSave: (date: string, time: string) => void;
}
export function BottomSheet({
isOpen,
onClose,
onSave,
initialDate = new Date(),
}: EstimateTimeBottomSheetProps) {
const { t } = useTranslation();
@@ -27,7 +25,7 @@ export function BottomSheet({
height={555}
snapPoints={["65vh"]}
>
<Content onSave={onSave} initialDate={initialDate} onClose={onClose} />
<Content onSave={onSave} onClose={onClose} />
</ProBottomSheet>
);
}