1
0
Fork 0
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:
Fedor Katurov 2021-03-29 15:48:00 +07:00
parent d5460cf61a
commit 3e8c2d4b6e
3 changed files with 37 additions and 34 deletions

View file

@ -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 };