mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
#58 added exit confirmation
This commit is contained in:
parent
d5460cf61a
commit
3e8c2d4b6e
3 changed files with 37 additions and 34 deletions
|
@ -41,17 +41,17 @@ const EditorEditDialog: FC = () => {
|
|||
return () => cancel();
|
||||
}, [id]);
|
||||
|
||||
return (
|
||||
<ModalWrapper onOverlayClick={console.log}>
|
||||
{isLoading ? (
|
||||
if (isLoading) {
|
||||
return (
|
||||
<ModalWrapper onOverlayClick={goBack}>
|
||||
<div className={styles.loader}>
|
||||
<LoaderCircle size={64} />
|
||||
</div>
|
||||
) : (
|
||||
<EditorDialog node={data} onRequestClose={goBack} />
|
||||
)}
|
||||
</ModalWrapper>
|
||||
);
|
||||
</ModalWrapper>
|
||||
);
|
||||
}
|
||||
|
||||
return <EditorDialog node={data} onRequestClose={goBack} />;
|
||||
};
|
||||
|
||||
export { EditorEditDialog };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue