From 06ddabb9fbe5627f93d8334b960680e65c1a3573 Mon Sep 17 00:00:00 2001 From: Hamza El Gatia Date: Fri, 19 Jan 2024 18:14:25 +0100 Subject: [PATCH] feat: add LoaderPopup component --- .../stock/src/screens/loader/LoaderScreen.js | 5 +- .../external/Loader/LoaderPopup.tsx | 109 ++++++++++++++++++ .../src/components/external/Loader/index.ts | 20 ++++ .../core/src/components/external/index.js | 2 +- packages/core/src/i18n/translations/en.json | 3 + packages/core/src/i18n/translations/fr.json | 3 + 6 files changed, 139 insertions(+), 3 deletions(-) create mode 100644 packages/core/src/components/external/Loader/LoaderPopup.tsx create mode 100644 packages/core/src/components/external/Loader/index.ts diff --git a/packages/apps/stock/src/screens/loader/LoaderScreen.js b/packages/apps/stock/src/screens/loader/LoaderScreen.js index 5c46b53c1a..939d6a9948 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 = () => { @@ -45,7 +45,7 @@ const LoaderScreen = () => { new Promise(resolve => { setTimeout(() => { resolve('Process finished'); - }, 10000); + }, 15000); }); const handleCustomAction = () => { @@ -61,6 +61,7 @@ const LoaderScreen = () => {