diff --git a/src/config/Paths.tsx b/src/config/Paths.tsx index 73b8431..165ae24 100644 --- a/src/config/Paths.tsx +++ b/src/config/Paths.tsx @@ -18,7 +18,10 @@ export const Paths = { }, home: '/home', myOrders: '/my-orders', - proformaInvoice: '/proforma-invoice', + perfomaInvoice: { + list: '/perfoma-invoice/list', + detail: '/perfoma-invoice/' + }, newOrder: '/new-order', orderDetails: '/order/', tickets: { diff --git a/src/router/MainRouter.tsx b/src/router/MainRouter.tsx index 97a22ca..bb95dd1 100644 --- a/src/router/MainRouter.tsx +++ b/src/router/MainRouter.tsx @@ -24,7 +24,7 @@ const MainRouter: FC = () => { } /> } /> - } /> + } /> } /> } /> diff --git a/src/shared/Sidebar.tsx b/src/shared/Sidebar.tsx index 1101fad..c885e81 100644 --- a/src/shared/Sidebar.tsx +++ b/src/shared/Sidebar.tsx @@ -1,6 +1,6 @@ import { type FC } from 'react' import LogoImage from '@/assets/images/logo.svg' -import { AddSquare, DocumentText, Element3, Home2, Messages3, NotificationStatus, Receipt21, Teacher } from 'iconsax-react' +import { AddSquare, DocumentText, Element3, ElementEqual, Home2, Messages3, MessageText, NotificationStatus, People, Profile2User, Receipt21, Teacher } from 'iconsax-react' import SideBarItem from './SidebarItem' import { useLocation } from 'react-router-dom' import { Paths } from '../config/Paths' @@ -50,18 +50,39 @@ const SideBar: FC = () => { link={Paths.home} /> + } + title={'درخواست ها'} + isActive={isActive('requests')} + link={Paths.requests.list} + /> + } - title={t('sidebar.myOrders')} - isActive={isActive('/my-orders')} - link={Paths.myOrders} + title={'سفارشات'} + isActive={isActive('order')} + link={Paths.order.list} /> } - title={t('sidebar.preFactors')} + title={'پیش فاکتور'} isActive={isActive('/proforma-invoice')} - link={Paths.proformaInvoice} + link={Paths.perfomaInvoice.list} + /> + + } + title={'محصولات'} + isActive={isActive('product')} + link={Paths.product.list} + /> + + } + title={'مشتریان'} + isActive={isActive('customer')} + link={'Paths.'} /> @@ -71,6 +92,14 @@ const SideBar: FC = () => {
+ + } + title={'کاربران'} + isActive={isActive('/tickets')} + link={Paths.tickets.list} + /> + } title={t('sidebar.tickets')}