change food to product name

This commit is contained in:
hamid zarghami
2026-02-09 14:04:21 +03:30
parent eae2ba0e7a
commit 687fc1e6c2
28 changed files with 186 additions and 194 deletions
+7 -7
View File
@@ -8,7 +8,7 @@ import { useLocation } from 'react-router-dom'
import { Pages } from '../config/Pages'
import { useSharedStore } from './store/sharedStore'
import { clx } from '../helpers/utils'
import FoodsSubMenu from './components/FoodsSubMenu'
import ProductsSubMenu from './components/ProductsSubMenu'
import OrdersSubMenu from './components/OrdersSubMenu'
import CustomersSubMenu from './components/CustomersSubMenu'
import DiscountSubMenu from './components/DiscountSubMenu'
@@ -115,11 +115,11 @@ const SideBar: FC = () => {
{checkPermission(PermissionEnum.MANAGE_FOODS) && (
<SideBarItem
icon={<Element3 variant={isActive('foods') ? 'Bold' : 'Outline'} color={isActive('foods') ? 'black' : '#8C90A3'} size={iconSizeSideBar} />}
icon={<Element3 variant={isActive('products') ? 'Bold' : 'Outline'} color={isActive('products') ? 'black' : '#8C90A3'} size={iconSizeSideBar} />}
title={t('sidebar.foods')}
isActive={isActive('foods')}
link={Pages.foods.list}
activeName='foods'
isActive={isActive('products')}
link={Pages.products.list}
activeName='products'
/>
)}
@@ -353,8 +353,8 @@ const SideBar: FC = () => {
hasSubMenu && (openSidebar || window.innerWidth > 1139) &&
<div className='fixed xl:right-[112px] right-[96px] bg-white z-20 xl:top-4 xl:bottom-4 top-0 bottom-0 rounded-tl-[32px] rounded-bl-[32px] w-[190px] border-r border-border'>
{
subMenuName === 'foods' ?
<FoodsSubMenu />
subMenuName === 'products' ?
<ProductsSubMenu />
: subMenuName === 'orders' ?
<OrdersSubMenu />
: subMenuName === 'customers' ?