This commit is contained in:
hamid zarghami
2025-02-19 17:07:25 +03:30
parent cd6a3a499f
commit a12d8b7dca
2 changed files with 9 additions and 4 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import { FC, useEffect, useState } from 'react'
import Input from '../components/Input'
import { ArrowDown2, Card, CloseCircle, Element3, HambergerMenu, Logout, ProfileCircle, Receipt1, Setting2, TicketDiscount, Wallet } from 'iconsax-react'
import AvatarImage from '../assets/images/Avatar.png'
import AvatarImage from '../assets/images/avatar_image.png'
import { useTranslation } from 'react-i18next'
import { Link, useLocation } from 'react-router-dom'
import { Pages } from '../config/Pages'
@@ -50,7 +50,7 @@ const Header: FC = () => {
<PopoverButton >
<div className='flex gap-2 items-center mt-2.5'>
<div className='size-6 rounded-full bg-description overflow-hidden'>
<img src={AvatarImage} className='size-full object-cover' />
<img src={data?.data?.user?.profilePic ? data?.data?.user?.profilePic : AvatarImage} className='size-full object-cover' />
</div>
<div className='xl:flex hidden gap-1 items-center'>
<div className='text-xs'>
@@ -67,7 +67,7 @@ const Header: FC = () => {
</div>
<div className='flex flex-col gap-2 items-center justify-center border-b border-[#EAEDF5] pb-4'>
<div className='size-14 rounded-full overflow-hidden'>
<img src={AvatarImage} className='size-full object-cover' />
<img src={data?.data?.user?.profilePic ? data?.data?.user?.profilePic : AvatarImage} className='size-full object-cover' />
</div>
<div>