Files
calendar/packages/features/bookings/Booker/utils/isBookingDryRun.ts
T
bac2d1f6f0 feat: Add dry run mode functionality and message display in booking process (#18429)
- Introduced a new `DryRunMessage` component to inform users when in dry run mode.
- Implemented utility function `isBookingDryRun` to check for dry run status based on URL search parameters.
- Updated the `Booker` component to conditionally render the dry run message.
- Adjusted booking mutation input mapping to reuse the utility

Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
2025-01-01 11:40:53 +00:00

4 lines
132 B
TypeScript

export const isBookingDryRun = (searchParams: URLSearchParams) => {
return searchParams.get("cal.isBookingDryRun") === "true";
};