diff --git a/packages/apps/stock/src/screens/loader/LoaderScreen.js b/packages/apps/stock/src/screens/loader/LoaderScreen.js index d8a2a6dae8..021c4e1323 100644 --- a/packages/apps/stock/src/screens/loader/LoaderScreen.js +++ b/packages/apps/stock/src/screens/loader/LoaderScreen.js @@ -35,9 +35,9 @@ */ import React from 'react'; -import {Button, View} from 'react-native'; +import {View} from 'react-native'; import {Screen} from '@axelor/aos-mobile-ui'; -import {LoaderPopup, useLoaderListner} from '@axelor/aos-mobile-core'; +import {LoaderPopup} from '@axelor/aos-mobile-core'; // Screen for test Loader functionnalities const LoaderScreen = () => { @@ -52,18 +52,16 @@ const LoaderScreen = () => { console.log('Custom action executed!'); }; - const {loading, listener} = useLoaderListner({ - process, - onSuccess: handleCustomAction, - onError: () => console.warn('An error has occurred!'), - disabled: true, - }); - return ( -