diff --git a/src/components/primitives/TooltipPrimitive.tsx b/src/components/primitives/TooltipPrimitive.tsx index 3b89fbcf..1cfa9e2f 100644 --- a/src/components/primitives/TooltipPrimitive.tsx +++ b/src/components/primitives/TooltipPrimitive.tsx @@ -27,10 +27,7 @@ export default function TooltipPrimitive({ useClickInsideOutside({ htmlElements: [refTrigger, refContent], - onClickOutside: () => { - console.log('onClickOutside'); - setIsOpen(false); - }, + onClickOutside: () => setIsOpen(false), }); return ( diff --git a/src/photo/PhotoGridPage.tsx b/src/photo/PhotoGridPage.tsx index 389d9322..036d405b 100644 --- a/src/photo/PhotoGridPage.tsx +++ b/src/photo/PhotoGridPage.tsx @@ -17,7 +17,7 @@ export default function PhotoGridPage({ tags, cameras, simulations, -}:{ +}: { photos: Photo[] photosCount: number tags: Tags @@ -25,30 +25,51 @@ export default function PhotoGridPage({ simulations: FilmSimulations }) { const { setSelectedPhotoIds } = useAppState(); - + useEffect( () => () => setSelectedPhotoIds?.(undefined), [setSelectedPhotoIds], ); + const renderGuard = (side: 'top' | 'bottom') => +
; + return (