maxCredit in header

This commit is contained in:
hamid zarghami
2026-02-26 11:01:08 +03:30
parent 6f0e6ece36
commit 5569208bc3
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -48,6 +48,7 @@ export const fa = {
contactUs: "با ما تماس بگیرید",
phoneNumber: "۰۸۶۹۱۰۰۹۰۰۱",
},
toman: "تومان",
uploadBox: {
selectFile: "انتخاب فایل",
},
+4 -2
View File
@@ -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 = () => {
<Link className='hidden xl:block' to={Pages.wallet}> */}
<div className='flex items-center h-8 pl-2 rounded-full bg-[#EEF0F7]'>
<div className='px-3 text-xs'>
{/* {NumberFormat(getWalletBalance.data?.data?.balance) + ' ' + t('toman')} */}
20,132
{NumberFormat(data?.maxCredit) + ' ' + t('toman')}
</div>
<div className='size-[26px] flex justify-center items-center bg-white rounded-xl'>
<Wallet className='xl:size-[18px] size-[17px]' color='black' />