fix: Booking Confirmation Dialogbox (#10397)

Co-authored-by: cherish2003 <saicherissh90@gmail.com>
This commit is contained in:
Cherish
2023-07-27 11:31:15 -04:00
committed by GitHub
co-authored by cherish2003
parent aa21217cfb
commit 0c37f8a712
@@ -15,7 +15,7 @@ export function BookFormAsModal({ visible, onCancel }: { visible: boolean; onCan
const selectedDuration = useBookerStore((state) => state.selectedDuration);
const { data } = useEvent();
const parsedSelectedTimeslot = dayjs(selectedTimeslot);
const { timeFormat } = useTimePreferences();
const { timeFormat ,timezone} = useTimePreferences();
return (
<Dialog open={visible} onOpenChange={onCancel}>
@@ -27,7 +27,7 @@ export function BookFormAsModal({ visible, onCancel }: { visible: boolean; onCan
<div className="my-4 flex space-x-2 rounded-md leading-none">
<Badge variant="grayWithoutHover" startIcon={Calendar} size="lg">
<span>
{parsedSelectedTimeslot.format("LL")} {parsedSelectedTimeslot.format(timeFormat)}
{parsedSelectedTimeslot.format("LL")} {parsedSelectedTimeslot.tz(timezone).format(timeFormat)}
</span>
</Badge>
{(selectedDuration || data?.length) && (