From 5569208bc3b9eb142e65c9ec7fbbb218cb564a16 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Thu, 26 Feb 2026 11:01:08 +0330 Subject: [PATCH] maxCredit in header --- src/locale/fa.ts | 1 + src/shared/Header.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/locale/fa.ts b/src/locale/fa.ts index 783bad9..2ddd030 100644 --- a/src/locale/fa.ts +++ b/src/locale/fa.ts @@ -48,6 +48,7 @@ export const fa = { contactUs: "با ما تماس بگیرید", phoneNumber: "۰۸۶۹۱۰۰۹۰۰۱", }, + toman: "تومان", uploadBox: { selectFile: "انتخاب فایل", }, diff --git a/src/shared/Header.tsx b/src/shared/Header.tsx index 1c81f9b..4352501 100644 --- a/src/shared/Header.tsx +++ b/src/shared/Header.tsx @@ -11,10 +11,13 @@ import { useSharedStore } from './store/useSharedStore' // import { useGetWalletBalance } from '@/pages/wallet/hooks/useWalletData' // import { NumberFormat } from '../config/func' import { t } from '@/locale' +import { useGetMe } from '@/pages/user/hooks/useUserData' +import { NumberFormat } from '@/config/func' const Header: FC = () => { const location = useLocation(); + const { data } = useGetMe() // const [popoverKey, setPopoverKey] = useState(0); const { setOpenSidebar, openSidebar } = useSharedStore() // const { data } = useGetProfile() @@ -48,8 +51,7 @@ const Header: FC = () => { */}
- {/* {NumberFormat(getWalletBalance.data?.data?.balance) + ' ' + t('toman')} */} - 20,132 + {NumberFormat(data?.maxCredit) + ' ' + t('toman')}