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:
parent
d5460cf61a
commit
3e8c2d4b6e
3 changed files with 37 additions and 34 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue