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 <[email protected]>
This commit is contained in:
1 parent
fec504496a
commit
bac2d1f6f0
6 files changed
+45
-5
No files matched your search
@@ -395,6 +395,11 @@ const nextConfig = {
|
||||
value: "cross-origin",
|
||||
};
|
||||
|
||||
const ACCESS_CONTROL_ALLOW_ORIGIN_HEADER = {
|
||||
key: "Access-Control-Allow-Origin",
|
||||
value: "*",
|
||||
};
|
||||
|
||||
return [
|
||||
{
|
||||
source: "/auth/:path*",
|
||||
@@ -464,7 +469,7 @@ const nextConfig = {
|
||||
},
|
||||
{
|
||||
source: "/icons/sprite.svg",
|
||||
headers: [CORP_CROSS_ORIGIN_HEADER],
|
||||
headers: [CORP_CROSS_ORIGIN_HEADER, ACCESS_CONTROL_ALLOW_ORIGIN_HEADER],
|
||||
},
|
||||
],
|
||||
...(isOrganizationsEnabled
|
||||
|
||||
Reference in new issue
Block a user