mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
ui: progress dialog should close after animating
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user