From 434541da9d946cd8a3abe2d0da57f8b5e36de7ac Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Tue, 14 Oct 2025 14:43:50 +0330 Subject: [PATCH] new order to sidebar --- src/components/Button.tsx | 2 +- src/locale/fa.ts | 6 ++++++ src/shared/Sidebar.tsx | 24 +++++++++++++++++++----- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 91a1105..fc951fa 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -14,7 +14,7 @@ type Props = { const Button: FC = memo((props: Props) => { const buttonClass = clx( - 'flex rounded-xl items-center justify-center text-center h-10 text-sm bg-primary text-white w-full', + 'flex rounded-xl items-center justify-center text-center h-10 text-sm bg-primary w-full', props.disabled && 'cursor-not-allowed opacity-60', props.className ); diff --git a/src/locale/fa.ts b/src/locale/fa.ts index a4620d2..b2bef8b 100644 --- a/src/locale/fa.ts +++ b/src/locale/fa.ts @@ -10,9 +10,15 @@ export const fa = { announcement: "انتشارات", criticisms: "انتقادات", learning: "آموزش", + submitYourOrder: "سفارش خودرا ثبت کنید", + submitYourOrderDescription: "کارت ویزیت ، کاتالوگ ، بروشور و...", + newOrder: "سفارش جدید", }, notif: { natification: "اعلان‌ها", all_read: "خواندن همه", }, + header: { + search: "جستجو", + }, }; diff --git a/src/shared/Sidebar.tsx b/src/shared/Sidebar.tsx index fb8cc3f..9bbef50 100644 --- a/src/shared/Sidebar.tsx +++ b/src/shared/Sidebar.tsx @@ -1,12 +1,13 @@ import { type FC } from 'react' import LogoImage from '@/assets/images/logo.svg' -import { DocumentText, Element3, Home2, Logout, Messages3, NotificationStatus, Receipt21, Teacher } from 'iconsax-react' +import { AddSquare, DocumentText, Element3, Home2, Messages3, NotificationStatus, Receipt21, Teacher } from 'iconsax-react' import SideBarItem from './SidebarItem' import { useLocation } from 'react-router-dom' import { Paths } from '../config/Paths' import { useSharedStore } from './store/useSharedStore' import { clx } from '../helpers/utils' import { t } from '../locale' +import Button from '@/components/Button' const SideBar: FC = () => { @@ -26,12 +27,12 @@ const SideBar: FC = () => { }
-
+
@@ -102,7 +103,20 @@ const SideBar: FC = () => {
-
+
+
{t('sidebar.submitYourOrder')}
+
{t('sidebar.submitYourOrderDescription')}
+ +
+ + {/*
} title={t('sidebar.logout')} @@ -110,7 +124,7 @@ const SideBar: FC = () => { link={`#`} isLogout /> -
+
*/}