diff --git a/packages/apps/stock/src/screens/loader/LoaderScreen.js b/packages/apps/stock/src/screens/loader/LoaderScreen.js index 6c1ef2fbb2..a86646c0c3 100644 --- a/packages/apps/stock/src/screens/loader/LoaderScreen.js +++ b/packages/apps/stock/src/screens/loader/LoaderScreen.js @@ -37,11 +37,11 @@ import React, {useState} from 'react'; import {View} from 'react-native'; import {Button, Screen} from '@axelor/aos-mobile-ui'; -import {LoaderPopup, useLoader} from '@axelor/aos-mobile-core'; +import {LoaderPopup} from '@axelor/aos-mobile-core'; // Screen for test Loader functionnalities const LoaderScreen = () => { - const [runProccess, setRunProccess] = useState(false); + const [start, setStart] = useState(false); const process = () => new Promise(resolve => { @@ -51,28 +51,26 @@ const LoaderScreen = () => { }); const handleSuccessAction = () => { - setRunProccess(false); + setStart(false); console.log('Success action executed!'); }; const handleErrorAction = () => { - setRunProccess(false); + setStart(false); console.log('Error action executed!'); }; - const {loading} = useLoader(); - return (