profile
This commit is contained in:
@@ -18,6 +18,7 @@ const OtherServicesComponent: FC = () => {
|
||||
const getCategory = useGetCategoriesPublic()
|
||||
const getServices = useGetServicesByCategory(categoryId)
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
if (getCategory.data) {
|
||||
@@ -26,6 +27,10 @@ const OtherServicesComponent: FC = () => {
|
||||
|
||||
}, [getCategory.data])
|
||||
|
||||
console.log('services', getServices.data?.data?.category?.danakServices
|
||||
);
|
||||
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className='w-full mt-8'>
|
||||
@@ -60,7 +65,7 @@ const OtherServicesComponent: FC = () => {
|
||||
<div className='flex w-full gap-6 items-center'>
|
||||
<div className='flex w-full flex-wrap xl:gap-6 gap-4 items-center mt-8'>
|
||||
{
|
||||
getServices.data?.data?.category?.danakService?.map((item: ItemServiceType) => {
|
||||
getServices.data?.data?.category?.danakServices?.map((item: ItemServiceType) => {
|
||||
return (
|
||||
<div className='flex-1 min-w-full xl:min-w-0 bg-white rounded-3xl py-4 px-6'>
|
||||
<div className='flex justify-between items-center'>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user