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