maxCredit in header
This commit is contained in:
@@ -48,6 +48,7 @@ export const fa = {
|
|||||||
contactUs: "با ما تماس بگیرید",
|
contactUs: "با ما تماس بگیرید",
|
||||||
phoneNumber: "۰۸۶۹۱۰۰۹۰۰۱",
|
phoneNumber: "۰۸۶۹۱۰۰۹۰۰۱",
|
||||||
},
|
},
|
||||||
|
toman: "تومان",
|
||||||
uploadBox: {
|
uploadBox: {
|
||||||
selectFile: "انتخاب فایل",
|
selectFile: "انتخاب فایل",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,10 +11,13 @@ import { useSharedStore } from './store/useSharedStore'
|
|||||||
// import { useGetWalletBalance } from '@/pages/wallet/hooks/useWalletData'
|
// import { useGetWalletBalance } from '@/pages/wallet/hooks/useWalletData'
|
||||||
// import { NumberFormat } from '../config/func'
|
// import { NumberFormat } from '../config/func'
|
||||||
import { t } from '@/locale'
|
import { t } from '@/locale'
|
||||||
|
import { useGetMe } from '@/pages/user/hooks/useUserData'
|
||||||
|
import { NumberFormat } from '@/config/func'
|
||||||
|
|
||||||
const Header: FC = () => {
|
const Header: FC = () => {
|
||||||
|
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
const { data } = useGetMe()
|
||||||
// const [popoverKey, setPopoverKey] = useState(0);
|
// const [popoverKey, setPopoverKey] = useState(0);
|
||||||
const { setOpenSidebar, openSidebar } = useSharedStore()
|
const { setOpenSidebar, openSidebar } = useSharedStore()
|
||||||
// const { data } = useGetProfile()
|
// const { data } = useGetProfile()
|
||||||
@@ -48,8 +51,7 @@ const Header: FC = () => {
|
|||||||
<Link className='hidden xl:block' to={Pages.wallet}> */}
|
<Link className='hidden xl:block' to={Pages.wallet}> */}
|
||||||
<div className='flex items-center h-8 pl-2 rounded-full bg-[#EEF0F7]'>
|
<div className='flex items-center h-8 pl-2 rounded-full bg-[#EEF0F7]'>
|
||||||
<div className='px-3 text-xs'>
|
<div className='px-3 text-xs'>
|
||||||
{/* {NumberFormat(getWalletBalance.data?.data?.balance) + ' ' + t('toman')} */}
|
{NumberFormat(data?.maxCredit) + ' ' + t('toman')}
|
||||||
20,132
|
|
||||||
</div>
|
</div>
|
||||||
<div className='size-[26px] flex justify-center items-center bg-white rounded-xl'>
|
<div className='size-[26px] flex justify-center items-center bg-white rounded-xl'>
|
||||||
<Wallet className='xl:size-[18px] size-[17px]' color='black' />
|
<Wallet className='xl:size-[18px] size-[17px]' color='black' />
|
||||||
|
|||||||
Reference in New Issue
Block a user