From 2dcb91c68cb5a6880e8de8c2e7476c87413b3309 Mon Sep 17 00:00:00 2001 From: Hamza El Gatia Date: Mon, 22 Jan 2024 17:45:41 +0100 Subject: [PATCH] feat: add loaderPopup component --- .../stock/src/screens/loader/LoaderScreen.js | 4 +- .../templates/Loader/LoaderPopup.tsx | 118 ++++++++++++++++++ .../src/components/templates/Loader/index.ts | 1 + .../templates/Loader/use-loader-listener.ts | 8 +- 4 files changed, 127 insertions(+), 4 deletions(-) create mode 100644 packages/core/src/components/templates/Loader/LoaderPopup.tsx diff --git a/packages/apps/stock/src/screens/loader/LoaderScreen.js b/packages/apps/stock/src/screens/loader/LoaderScreen.js index 77c352ffdc..a48110b161 100644 --- a/packages/apps/stock/src/screens/loader/LoaderScreen.js +++ b/packages/apps/stock/src/screens/loader/LoaderScreen.js @@ -37,7 +37,7 @@ import React from 'react'; import {Button, View} from 'react-native'; import {Screen} from '@axelor/aos-mobile-ui'; -import {useLoaderListner} from '@axelor/aos-mobile-core'; +import {LoaderPopup, useLoaderListner} from '@axelor/aos-mobile-core'; // Screen for test Loader functionnalities const LoaderScreen = () => { @@ -55,12 +55,14 @@ const LoaderScreen = () => { const {loading, listener} = useLoaderListner({ process, onSuccess: handleCustomAction, + disabled: true, }); return (