feat: booker atom confirm and back button styling (#20162)

* feat: submitButtonDisabled Booker atom prop

* feat: confirmStep.confirmButton & backButton booker styles

* refactor: rename submitButtonDisabled to confirmButtonDisabled

* feat: implement this feature for skip confirm step

* refactor: naming
This commit is contained in:
Lauris Skraucis authored and GitHub committed 2025-03-19 11:30:48 +00:00
1 parent a64e7f9c2a
commit 91d4f1c219
9 files changed
+150 -22

No files matched your search

@@ -58,6 +58,7 @@ export const BookerPlatformWrapper = (
preventEventTypeRedirect,
onBookerStateChange,
allowUpdatingUrlParams = false,
confirmButtonDisabled,
} = props;
const layout = BookerLayouts[view];
@@ -504,6 +505,7 @@ export const BookerPlatformWrapper = (
rescheduledBy={props.rescheduledBy ?? null}
bookingUid={props.bookingUid ?? null}
isRedirect={false}
confirmButtonDisabled={confirmButtonDisabled}
fromUserNameRedirected=""
hasSession={hasSession}
onGoBackInstantMeeting={function (): void {
+1
View File
@@ -73,6 +73,7 @@ export type BookerPlatformWrapperAtomProps = Omit<
hostsLimit?: number;
preventEventTypeRedirect?: boolean;
allowUpdatingUrlParams?: boolean;
confirmButtonDisabled?: boolean;
};
type VIEW_TYPE = keyof typeof BookerLayouts;
@@ -107,6 +107,7 @@ export default function Bookings(props: { calUsername: string; calEmail: string
}}
metadata={{ CustomKey: "CustomValue" }}
duration={eventTypeDuration}
confirmButtonDisabled={false}
customClassNames={{
bookerContainer: "!bg-[#F5F2FE] [&_button:!rounded-full] border-subtle border",
datePickerCustomClassNames: {
@@ -119,6 +120,10 @@ export default function Bookings(props: { calUsername: string; calEmail: string
availableTimeSlotsHeaderContainer: "!bg-[#F5F2FE]",
availableTimes: "!bg-[#D7CEF5]",
},
confirmStep: {
confirmButton: "!bg-purple-700",
backButton: "text-purple-700 hover:!bg-purple-700 hover:!text-white",
},
}}
{...(isTeamEvent
? { isTeamEvent: true, teamId: teams?.[0]?.id || 0 }