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
@@ -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'>