fix: skip when browsing month has no available slots (#19626)

* fix: skip when browsing month has no available slots

* Fix zustand error + add wip tests

* Fix issue with using brows
ingDate too early

* Use slots instead of schedule return types to remove hard coupling to tRPC

* Some await fixes + use type definition from extended core feature

* Move useNextMonth to custom hook

* Add unit tests to cover the next month scenario

* Use changed interface, schedule -> slots,isLoading

* Return no-op until ready
This commit is contained in:
Alex van Andel authored and GitHub committed 2025-03-25 17:28:50 +00:00
1 parent d131d58b19
commit 0772e1d168
12 files changed
+240 -46

No files matched your search

+1 -1
View File
@@ -354,7 +354,7 @@ const EmailEmbed = ({
<CollapsibleContent>
<div className="text-default text-sm">{t("select_date")}</div>
<DatePicker
isPending={schedule.isPending}
isLoading={schedule.isPending}
onChange={(date: Dayjs | null) => {
setSelectedDate(date === null ? date : date.format("YYYY-MM-DD"));
}}