- 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>
4 lines
132 B
TypeScript
4 lines
132 B
TypeScript
export const isBookingDryRun = (searchParams: URLSearchParams) => {
|
|
return searchParams.get("cal.isBookingDryRun") === "true";
|
|
};
|