From 85d1621a0dfaccc66fa4fd9f46dd6665dc47bdd9 Mon Sep 17 00:00:00 2001 From: zuies Date: Thu, 6 Jul 2023 10:05:45 +0400 Subject: [PATCH] implement communityHealth route --- src/components/layouts/Sidebar.tsx | 48 +++++++------------------ src/components/layouts/xs/SidebarXs.tsx | 2 +- src/pages/communityHealth.tsx | 10 ++++++ 3 files changed, 24 insertions(+), 36 deletions(-) create mode 100644 src/pages/communityHealth.tsx diff --git a/src/components/layouts/Sidebar.tsx b/src/components/layouts/Sidebar.tsx index a920483f..fb419d46 100644 --- a/src/components/layouts/Sidebar.tsx +++ b/src/components/layouts/Sidebar.tsx @@ -19,7 +19,6 @@ import { import { useRouter } from 'next/router'; import Link from 'next/link'; -import { Tooltip, Typography } from '@mui/material'; import useAppStore from '../../store/useStore'; import { StorageService } from '../../services/StorageService'; import { IUser } from '../../utils/types'; @@ -54,7 +53,7 @@ const Sidebar = () => { }, { name: 'Community Health', - path: '/community-health', + path: '/communityHealth', icon: ( { const menuItem = menuItems.map((el) => (
  • - {el.path === '/community-health' ? ( - <> - Coming soon} - arrow - placement="right" - > -
    - {el.icon} -
    -
    -

    {el.name}

    - - ) : ( - -
    - {el.icon} -
    -

    {el.name}

    - - )} + +
    + {el.icon} +
    +

    {el.name}

    +
  • )); diff --git a/src/components/layouts/xs/SidebarXs.tsx b/src/components/layouts/xs/SidebarXs.tsx index 8f26129b..bed2f8be 100644 --- a/src/components/layouts/xs/SidebarXs.tsx +++ b/src/components/layouts/xs/SidebarXs.tsx @@ -57,7 +57,7 @@ const Sidebar = () => { }, { name: 'Community Health', - path: '/t', + path: '/communityHealth', icon: ( communityHealth; +} + +communityHealth.pageLayout = defaultLayout; + +export default communityHealth;