From 6e716d7b01f14490280e1b69c34fd56ff67afde2 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Tue, 19 Apr 2022 19:06:13 +0000 Subject: [PATCH] click on blank space closes image --- frontend/src/Photos/Overview.tsx | 19 +++++++++++-------- frontend/src/Photos/Photo.tsx | 26 ++++++++++++++------------ 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/frontend/src/Photos/Overview.tsx b/frontend/src/Photos/Overview.tsx index 0349146..eabdf22 100644 --- a/frontend/src/Photos/Overview.tsx +++ b/frontend/src/Photos/Overview.tsx @@ -85,13 +85,11 @@ export const OverviewComponent: React.FunctionComponent< ); const photosEls = photos.map((photo) => { return ( - <> - onCardClick(photo.id)} - /> - + onCardClick(photo.id)} + /> ); }); return [ @@ -144,7 +142,12 @@ export const OverviewComponent: React.FunctionComponent< >
- + { + setOverlayOpen(false); + }} + />