Time estimate card: fix date values
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user