maxCredit in header
This commit is contained in:
@@ -48,6 +48,7 @@ export const fa = {
|
||||
contactUs: "با ما تماس بگیرید",
|
||||
phoneNumber: "۰۸۶۹۱۰۰۹۰۰۱",
|
||||
},
|
||||
toman: "تومان",
|
||||
uploadBox: {
|
||||
selectFile: "انتخاب فایل",
|
||||
},
|
||||
|
||||
@@ -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' />
|
||||
|
||||
Reference in New Issue
Block a user