|
@@ -3,16 +3,11 @@ import React, { ReactNode } from 'react';
|
|
|
import dynamic from 'next/dynamic';
|
|
import dynamic from 'next/dynamic';
|
|
|
import { DndProvider } from 'react-dnd';
|
|
import { DndProvider } from 'react-dnd';
|
|
|
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
|
-import { Button } from 'reactstrap';
|
|
|
|
|
|
|
|
|
|
-import { usePageSelectModal } from '~/stores/modal';
|
|
|
|
|
-
|
|
|
|
|
-import { PageSelectModal } from '../PageSelectModal/PageSelectModal';
|
|
|
|
|
import { Sidebar } from '../Sidebar';
|
|
import { Sidebar } from '../Sidebar';
|
|
|
|
|
|
|
|
import { RawLayout } from './RawLayout';
|
|
import { RawLayout } from './RawLayout';
|
|
|
|
|
|
|
|
-
|
|
|
|
|
const AlertSiteUrlUndefined = dynamic(() => import('../AlertSiteUrlUndefined').then(mod => mod.AlertSiteUrlUndefined), { ssr: false });
|
|
const AlertSiteUrlUndefined = dynamic(() => import('../AlertSiteUrlUndefined').then(mod => mod.AlertSiteUrlUndefined), { ssr: false });
|
|
|
const DeleteAttachmentModal = dynamic(() => import('../PageAttachment/DeleteAttachmentModal').then(mod => mod.DeleteAttachmentModal), { ssr: false });
|
|
const DeleteAttachmentModal = dynamic(() => import('../PageAttachment/DeleteAttachmentModal').then(mod => mod.DeleteAttachmentModal), { ssr: false });
|
|
|
const HotkeysManager = dynamic(() => import('../Hotkeys/HotkeysManager'), { ssr: false });
|
|
const HotkeysManager = dynamic(() => import('../Hotkeys/HotkeysManager'), { ssr: false });
|
|
@@ -37,10 +32,6 @@ type Props = {
|
|
|
|
|
|
|
|
|
|
|
|
|
export const BasicLayout = ({ children, className }: Props): JSX.Element => {
|
|
export const BasicLayout = ({ children, className }: Props): JSX.Element => {
|
|
|
- const {
|
|
|
|
|
- open: openModal,
|
|
|
|
|
- } = usePageSelectModal();
|
|
|
|
|
-
|
|
|
|
|
return (
|
|
return (
|
|
|
<RawLayout className={className ?? ''}>
|
|
<RawLayout className={className ?? ''}>
|
|
|
<DndProvider backend={HTML5Backend}>
|
|
<DndProvider backend={HTML5Backend}>
|
|
@@ -71,10 +62,6 @@ export const BasicLayout = ({ children, className }: Props): JSX.Element => {
|
|
|
|
|
|
|
|
<ShortcutsModal />
|
|
<ShortcutsModal />
|
|
|
<SystemVersion showShortcutsButton />
|
|
<SystemVersion showShortcutsButton />
|
|
|
-
|
|
|
|
|
- <Button onClick={() => openModal()}>Open!</Button>
|
|
|
|
|
- <PageSelectModal />
|
|
|
|
|
- {/* TODO: remove unnecessary code with https://redmine.weseek.co.jp/issues/128327 */}
|
|
|
|
|
</RawLayout>
|
|
</RawLayout>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|