fix: refactor filter UIs on /bookings (#19532)

* Reapply "fix: replace filter implementations on bookings (#19445)" (#19506)

This reverts commit f6af6e34bd.

* force custom date range selector for bookings except for Past tab

* fix e2e test

* add e2e tests

* fix e2e test
This commit is contained in:
Eunjae Lee authored and GitHub committed 2025-02-26 09:47:20 +01:00
1 parent ca1f84c827
commit 3d3acba82a
19 files changed
+658 -215

No files matched your search

@@ -16,6 +16,7 @@ type DatePickerWithRangeProps = {
minDate?: Date | null;
maxDate?: Date;
withoutPopover?: boolean;
"data-testid"?: string;
};
export function DatePickerWithRange({
@@ -26,6 +27,7 @@ export function DatePickerWithRange({
onDatesChange,
disabled,
withoutPopover,
"data-testid": testId,
}: React.HTMLAttributes<HTMLDivElement> & DatePickerWithRangeProps) {
function handleDayClick(date: Date) {
if (dates?.endDate) {
@@ -50,6 +52,7 @@ export function DatePickerWithRange({
onDayClick={(day) => handleDayClick(day)}
numberOfMonths={1}
disabled={disabled}
data-testid={testId}
/>
);