|
@@ -1,5 +1,7 @@
|
|
|
import dynamic from 'next/dynamic';
|
|
import dynamic from 'next/dynamic';
|
|
|
|
|
|
|
|
|
|
+import { useDrawerOpened } from '~/stores/ui';
|
|
|
|
|
+
|
|
|
import styles from './EditorNavbarBottom.module.scss';
|
|
import styles from './EditorNavbarBottom.module.scss';
|
|
|
|
|
|
|
|
const moduleClass = styles['grw-editor-navbar-bottom'];
|
|
const moduleClass = styles['grw-editor-navbar-bottom'];
|
|
@@ -8,9 +10,19 @@ const SavePageControls = dynamic(() => import('~/components/SavePageControls').t
|
|
|
const OptionsSelector = dynamic(() => import('~/components/PageEditor/OptionsSelector').then(mod => mod.OptionsSelector), { ssr: false });
|
|
const OptionsSelector = dynamic(() => import('~/components/PageEditor/OptionsSelector').then(mod => mod.OptionsSelector), { ssr: false });
|
|
|
|
|
|
|
|
const EditorNavbarBottom = (): JSX.Element => {
|
|
const EditorNavbarBottom = (): JSX.Element => {
|
|
|
|
|
+
|
|
|
|
|
+ const { mutate: mutateDrawerOpened } = useDrawerOpened();
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<div className="border-top" data-testid="grw-editor-navbar-bottom">
|
|
<div className="border-top" data-testid="grw-editor-navbar-bottom">
|
|
|
<div className={`flex-expand-horiz align-items-center p-2 ps-md-3 pe-md-4 ${moduleClass}`}>
|
|
<div className={`flex-expand-horiz align-items-center p-2 ps-md-3 pe-md-4 ${moduleClass}`}>
|
|
|
|
|
+ <a
|
|
|
|
|
+ role="button"
|
|
|
|
|
+ className="nav-link btn-lg p-2 d-md-none me-3 opacity-50"
|
|
|
|
|
+ onClick={() => mutateDrawerOpened(true)}
|
|
|
|
|
+ >
|
|
|
|
|
+ <span className="material-symbols-outlined fs-2">reorder</span>
|
|
|
|
|
+ </a>
|
|
|
<form className="me-auto">
|
|
<form className="me-auto">
|
|
|
<OptionsSelector />
|
|
<OptionsSelector />
|
|
|
</form>
|
|
</form>
|