diff --git a/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.tsx b/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.tsx index 2ea3443816..dfdcc83953 100644 --- a/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.tsx +++ b/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.tsx @@ -41,6 +41,7 @@ type AvailabilitySettingsPlatformWrapperProps = { disableToasts?: boolean; isDryRun?: boolean; noScheduleChildren?: ReactNode; + loadingStateChildren?: ReactNode; }; export const AvailabilitySettingsPlatformWrapper = ({ @@ -59,6 +60,7 @@ export const AvailabilitySettingsPlatformWrapper = ({ disableToasts, isDryRun = false, noScheduleChildren, + loadingStateChildren, }: AvailabilitySettingsPlatformWrapperProps) => { const { isLoading, data: schedule } = useSchedule(id); const { data: schedules } = useSchedules(); @@ -123,7 +125,13 @@ export const AvailabilitySettingsPlatformWrapper = ({ } }; - if (isLoading) return
Loading...
; + if (isLoading) { + return ( + <> + {loadingStateChildren ? loadingStateChildren :
Loading...
} + + ); + } if (!atomSchedule) { return noScheduleChildren ? (