diff --git a/src/config/SideBarSubMenu.ts b/src/config/SideBarSubMenu.ts new file mode 100644 index 0000000..3084413 --- /dev/null +++ b/src/config/SideBarSubMenu.ts @@ -0,0 +1,7 @@ +export const SideBarItemHasSubMenu = [ + "services", + "customers", + "receipt", + "users", + "transactions", +]; diff --git a/src/langs/fa.json b/src/langs/fa.json index 3dcf200..dff8bfb 100644 --- a/src/langs/fa.json +++ b/src/langs/fa.json @@ -68,6 +68,9 @@ "setting": "تنظیمات", "logout": "خروج" }, + "submenu": { + "services_list": "لیست سرویس ها" + }, "header": { "search": "جستجو" }, diff --git a/src/router/Main.tsx b/src/router/Main.tsx index 2685135..e31375a 100644 --- a/src/router/Main.tsx +++ b/src/router/Main.tsx @@ -21,14 +21,24 @@ import OtherServices from '../pages/service/OtherServices' import Footer from '../shared/Footer' import AnnouncementDetail from '../pages/annoncement/Detail' import DetailService from '../pages/service/DetailService' +import { clx } from '../helpers/utils' +import { useSharedStore } from '../shared/store/sharedStore' const MainRouter: FC = () => { + + const { hasSubMenu } = useSharedStore() + return (