service item disabled and other...

This commit is contained in:
hamid zarghami
2025-03-04 12:15:25 +03:30
parent 004c91dde4
commit 91e8a4e6d3
5 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ define(['./workbox-e7681877'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812" "revision": "3ca0b8505b4bec776b69afdba2768812"
}, { }, {
"url": "index.html", "url": "index.html",
"revision": "0.kim5d4lsg4" "revision": "0.c4ipjkbi9g8"
}], {}); }], {});
workbox.cleanupOutdatedCaches(); workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), { workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
+4 -3
View File
@@ -10,7 +10,8 @@ type Props = {
item: ItemServiceType, item: ItemServiceType,
className?: string, className?: string,
isLinkPanel?: boolean, isLinkPanel?: boolean,
businessName?: string businessName?: string,
isDisabled?: boolean
} }
const ServiceItem: FC<Props> = (props: Props) => { const ServiceItem: FC<Props> = (props: Props) => {
@@ -19,7 +20,7 @@ const ServiceItem: FC<Props> = (props: Props) => {
const { item } = props const { item } = props
return ( return (
<div className={`flex-1 flex flex-col self-stretch min-w-[45%] xl:min-w-[30%] bg-white rounded-3xl xl:p-6 p-4 ${props.className}`}> <div className={`flex-1 flex flex-col self-stretch min-w-[45%] xl:min-w-[30%] bg-white rounded-3xl xl:p-6 p-4 ${props.className} ${props.isDisabled ? 'opacity-50' : ''}`}>
<div className='flex gap-2 items-center'> <div className='flex gap-2 items-center'>
<div className='xl:size-[50px] size-10 overflow-hidden rounded-xl'> <div className='xl:size-[50px] size-10 overflow-hidden rounded-xl'>
<img src={item.icon} alt={item.name} className='w-full h-full' /> <img src={item.icon} alt={item.name} className='w-full h-full' />
@@ -41,7 +42,7 @@ const ServiceItem: FC<Props> = (props: Props) => {
</div> </div>
<div className='mt-4 flex-1 flex items-end'> <div className='mt-4 flex-1 flex items-end'>
<Link target={props.isLinkPanel ? '_blank' : ''} to={props.isLinkPanel ? item.link : Pages.services.detail + item.id}> <Link target={props.isLinkPanel && !props.isDisabled ? '_blank' : ''} to={props.isDisabled ? '#' : props.isLinkPanel ? item.link : Pages.services.detail + item.id}>
<Button <Button
className='h-8 w-fit px-5 text-xs text-black bg-description bg-opacity-20 rounded-xl' className='h-8 w-fit px-5 text-xs text-black bg-description bg-opacity-20 rounded-xl'
> >
+1 -3
View File
@@ -44,9 +44,7 @@ const Home: FC = () => {
<div key={item.id} className='relative drtl'> <div key={item.id} className='relative drtl'>
<img src={item.imageUrl} className='w-full rounded-xl min-h-[190px] max-h-[300px] h-full object-cover' /> <img src={item.imageUrl} className='w-full rounded-xl min-h-[190px] max-h-[300px] h-full object-cover' />
<div className='absolute bg-black bg-opacity-20 size-full top-0 right-0 py-6 px-8 flex flex-col justify-between'> <div className='absolute bg-black bg-opacity-20 size-full top-0 right-0 py-6 px-8 flex flex-col justify-between'>
<button className="px-8 w-fit py-1.5 bg-white bg-opacity-10 text-white text-sm rounded-full shadow-md "> <div></div>
</button>
<div className='max-w-[340px] font-medium text-white text-lg leading-10'> <div className='max-w-[340px] font-medium text-white text-lg leading-10'>
<div className='xl:text-lg text-sm'> <div className='xl:text-lg text-sm'>
+1
View File
@@ -62,6 +62,7 @@ const MyServices: FC = () => {
item={item.plan.service} item={item.plan.service}
isLinkPanel isLinkPanel
businessName={item.businessName} businessName={item.businessName}
isDisabled={item.status === 'INACTIVE'}
/> />
) )
}) })
+1 -3
View File
@@ -40,9 +40,7 @@ const OtherServices: FC = () => {
<div key={item.id} className='relative drtl'> <div key={item.id} className='relative drtl'>
<img src={item.imageUrl} className='w-full rounded-xl min-h-[190px] max-h-[300px] h-full object-cover' /> <img src={item.imageUrl} className='w-full rounded-xl min-h-[190px] max-h-[300px] h-full object-cover' />
<div className='absolute bg-black bg-opacity-20 size-full top-0 right-0 py-6 px-8 flex flex-col justify-between'> <div className='absolute bg-black bg-opacity-20 size-full top-0 right-0 py-6 px-8 flex flex-col justify-between'>
<button className="px-8 w-fit py-1.5 bg-white bg-opacity-10 text-white text-sm rounded-full shadow-md "> <div></div>
</button>
<div className='max-w-[340px] font-medium text-white text-lg leading-10'> <div className='max-w-[340px] font-medium text-white text-lg leading-10'>
<div className='xl:text-lg text-sm'> <div className='xl:text-lg text-sm'>