ui: progress dialog should close after animating

This commit is contained in:
ammarahm-ed
2021-10-30 14:03:57 +05:00
parent b8966a3489
commit 11f43727f9

View File

@@ -40,13 +40,14 @@ const ProgressDialog = ({context}) => {
}; };
const close = () => { const close = () => {
setVisible(false); actionSheetRef.current?.setModalVisible(false);
}; };
return !visible ? null : ( return !visible ? null : (
<ActionSheetWrapper <ActionSheetWrapper
fwdRef={actionSheetRef} fwdRef={actionSheetRef}
gestureEnabled={dialogData?.noProgress} gestureEnabled={dialogData?.noProgress}
closeOnTouchBackdrop={dialogData?.noProgress}
onClose={() => { onClose={() => {
if (dialogData.noProgress) { if (dialogData.noProgress) {
setVisible(false); setVisible(false);