1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +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

@ -3,7 +3,6 @@ import { EMPTY_NODE, NODE_TYPES } from '~/redux/node/constants';
import { EditorDialog } from '~/containers/dialogs/EditorDialog';
import { useHistory, useRouteMatch } from 'react-router';
import { values } from 'ramda';
import { ModalWrapper } from '~/components/dialogs/ModalWrapper';
const EditorCreateDialog: FC = () => {
const history = useHistory();
@ -28,11 +27,7 @@ const EditorCreateDialog: FC = () => {
return null;
}
return (
<ModalWrapper onOverlayClick={goBack}>
<EditorDialog node={data.current} onRequestClose={goBack} />
</ModalWrapper>
);
return <EditorDialog node={data.current} onRequestClose={goBack} />;
};
export { EditorCreateDialog };