|
@@ -14,6 +14,7 @@ export const useNavigationPanelHooks = function () {
|
|
const width = useAppSelector((state) => state.navigationWidth);
|
|
const width = useAppSelector((state) => state.navigationWidth);
|
|
const [navigationPanelFixed, setNavigationPanelFixed] = useState(true);
|
|
const [navigationPanelFixed, setNavigationPanelFixed] = useState(true);
|
|
const [slideInFloatingPanel, setSlideInFloatingPanel] = useState(true);
|
|
const [slideInFloatingPanel, setSlideInFloatingPanel] = useState(true);
|
|
|
|
+ const [menuHidden, setMenuHidden] = useState(false);
|
|
|
|
|
|
const navigate = useNavigate();
|
|
const navigate = useNavigate();
|
|
|
|
|
|
@@ -28,6 +29,14 @@ export const useNavigationPanelHooks = function () {
|
|
|
|
|
|
const [floatingPanelWidth, setFloatingPanelWidth] = useState(0);
|
|
const [floatingPanelWidth, setFloatingPanelWidth] = useState(0);
|
|
|
|
|
|
|
|
+ const onHideMenuClick = () => {
|
|
|
|
+ setMenuHidden(true);
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ const onShowMenuClick = () => {
|
|
|
|
+ setMenuHidden(false);
|
|
|
|
+ };
|
|
|
|
+
|
|
const onPageClick = (page: IPage) => {
|
|
const onPageClick = (page: IPage) => {
|
|
let pageTypeRoute = (() => {
|
|
let pageTypeRoute = (() => {
|
|
switch (page.pageType) {
|
|
switch (page.pageType) {
|
|
@@ -69,5 +78,8 @@ export const useNavigationPanelHooks = function () {
|
|
onScreenMouseMove,
|
|
onScreenMouseMove,
|
|
slideInFloatingPanel,
|
|
slideInFloatingPanel,
|
|
setFloatingPanelWidth,
|
|
setFloatingPanelWidth,
|
|
|
|
+ menuHidden,
|
|
|
|
+ onHideMenuClick,
|
|
|
|
+ onShowMenuClick,
|
|
};
|
|
};
|
|
};
|
|
};
|