From 16ab6b2369baffc1c5ed59b1292c46b9da595907 Mon Sep 17 00:00:00 2001 From: cballevre Date: Mon, 18 Dec 2023 14:50:19 +0100 Subject: [PATCH] refactor: Remove Overlay wrapping Viewer This change is due to the breaking change in cozy-ui 95.0.0 --- src/photos/components/PhotosViewer.jsx | 35 ++++++++++++-------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/src/photos/components/PhotosViewer.jsx b/src/photos/components/PhotosViewer.jsx index b59a4be91..f37febe9e 100644 --- a/src/photos/components/PhotosViewer.jsx +++ b/src/photos/components/PhotosViewer.jsx @@ -1,6 +1,5 @@ import React, { useMemo } from 'react' -import Overlay from 'cozy-ui/transpiled/react/deprecated/Overlay' import Viewer from 'cozy-ui/transpiled/react/Viewer' import FooterActionButtons from 'cozy-ui/transpiled/react/Viewer/Footer/FooterActionButtons' import ForwardOrDownloadButton from 'cozy-ui/transpiled/react/Viewer/Footer/ForwardOrDownloadButton' @@ -40,24 +39,22 @@ const PhotosViewer = ({ photos, isPublic = false }) => { ) return ( - - navigate(`../${nextPhoto.id}`)} - onCloseRequest={() => navigate('..')} - componentsProps={{ - toolbarProps: { - showFilePath: !isPublic - } - }} - > - - - - - - + navigate(`../${nextPhoto.id}`)} + onCloseRequest={() => navigate('..')} + componentsProps={{ + toolbarProps: { + showFilePath: !isPublic + } + }} + > + + + + + ) }