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 = () => {
setVisible(false);
actionSheetRef.current?.setModalVisible(false);
};
return !visible ? null : (
<ActionSheetWrapper
fwdRef={actionSheetRef}
gestureEnabled={dialogData?.noProgress}
closeOnTouchBackdrop={dialogData?.noProgress}
onClose={() => {
if (dialogData.noProgress) {
setVisible(false);