diff --git a/src/frontend/src/components/DroneOperatorTask/DescriptionSection/PopoverBox/ImageBox/ImageCard/index.tsx b/src/frontend/src/components/DroneOperatorTask/DescriptionSection/PopoverBox/ImageBox/ImageCard/index.tsx index de4285e7..c9bb0557 100644 --- a/src/frontend/src/components/DroneOperatorTask/DescriptionSection/PopoverBox/ImageBox/ImageCard/index.tsx +++ b/src/frontend/src/components/DroneOperatorTask/DescriptionSection/PopoverBox/ImageBox/ImageCard/index.tsx @@ -1,14 +1,8 @@ -/* eslint-disable jsx-a11y/interactive-supports-focus */ -/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ -/* eslint-disable jsx-a11y/click-events-have-key-events */ -import { useState } from 'react'; - import { setSelectedImage, unCheckImages, } from '@Store/actions/droneOperatorTask'; import { useTypedDispatch } from '@Store/hooks'; -import Skeleton from '@Components/RadixComponents/Skeleton'; interface IImageCardProps { image: string; @@ -23,32 +17,33 @@ const ImageCard = ({ deselectImages, }: IImageCardProps) => { const dispatch = useTypedDispatch(); - const [loading, setLoading] = useState(true); - const handleLoad = () => { - setLoading(false); - }; return ( <> - {loading && ( - - )}
dispatch(setSelectedImage(image))} > -
- + {/* dispatch(setSelectedImage(image))} - /> + /> */} + + image +
dispatch(unCheckImages(deselectImages))} + onClick={e => { + e.stopPropagation(); + dispatch(unCheckImages(deselectImages)); + }} >