From 58fc104245067ae25d4f24e5a2b0665956fba67a Mon Sep 17 00:00:00 2001 From: Hamza El Gatia Date: Wed, 28 Feb 2024 12:02:15 +0100 Subject: [PATCH] fix: cut out autoleave process option props --- packages/core/src/components/templates/Loader/LoaderPopup.tsx | 1 - packages/core/src/components/templates/Loader/types.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/core/src/components/templates/Loader/LoaderPopup.tsx b/packages/core/src/components/templates/Loader/LoaderPopup.tsx index 10ddc5ad93..a941c634f0 100644 --- a/packages/core/src/components/templates/Loader/LoaderPopup.tsx +++ b/packages/core/src/components/templates/Loader/LoaderPopup.tsx @@ -63,7 +63,6 @@ const LoaderPopup = ({ const {processItem, loading} = useLoaderListner( { disabled, - autoLeave, process, onSuccess, onError, diff --git a/packages/core/src/components/templates/Loader/types.ts b/packages/core/src/components/templates/Loader/types.ts index d95b603ef0..de306ac4f2 100644 --- a/packages/core/src/components/templates/Loader/types.ts +++ b/packages/core/src/components/templates/Loader/types.ts @@ -36,7 +36,6 @@ export enum ProcessStatus { export type ProcessOption = { disabled: boolean; - autoLeave: boolean; process: () => Promise; onSuccess: () => void; onError: () => void;