diff --git a/frontend/src/components/pages/details/components/DetailsCard/DetailsCard.tsx b/frontend/src/components/pages/details/components/DetailsCard/DetailsCard.tsx index bbd4036d3..22b4302c1 100644 --- a/frontend/src/components/pages/details/components/DetailsCard/DetailsCard.tsx +++ b/frontend/src/components/pages/details/components/DetailsCard/DetailsCard.tsx @@ -14,6 +14,7 @@ import { ViewPoint } from 'modules/viewPoint/interface'; import { FileFromAttachment, ImageFromAttachment } from 'modules/interface'; import { ViewPoint as ViewPointIcon } from 'components/Icons/ViewPoint'; import { Paperclip } from 'components/Icons/Paperclip'; +import ImageWithLegend from 'components/ImageWithLegend'; import { useDetailsCard } from './useDetailsCard'; import { DetailsViewPoints } from '../DetailsViewPoints'; import { DetailsFiles } from '../DetailsFiles'; @@ -143,27 +144,29 @@ export const DetailsCard: React.FC = ({
- {({ isFullscreen, toggleFullscreen }) => ( - <> - {type === 'TOURISTIC_CONTENT' && - redirectionUrl && - images.length > 0 && - hasNavigator && ( + {({ isFullscreen, toggleFullscreen }) => { + return ( + <> + {images.length > 1 && hasNavigator ? ( + ) : ( + )} - {type !== 'TOURISTIC_CONTENT' && images.length > 0 && hasNavigator && ( - - )} - - )} + + ); + }}
@@ -189,7 +192,7 @@ export const DetailsCard: React.FC = ({ titleTag="h3" asAccordion /> - {hasNavigator && ( + {hasViewPoints && ( - -
+
- Lorem ipsum -
- + - - Lorem ipsum - Lorem ipsum - + Lorem ipsum - Lorem ipsum - -
-
-
+ Voir l'image en plein écran + + + +
@@ -158,7 +154,7 @@ Object { >
@@ -217,7 +213,7 @@ Object { >
@@ -350,52 +346,48 @@ Object {
- -
+
- Lorem ipsum -
- + - - Lorem ipsum - Lorem ipsum - + Lorem ipsum - Lorem ipsum - -
-
-
+ Voir l'image en plein écran + + +
+
@@ -509,52 +501,48 @@ Object {
- -
+
- Lorem ipsum -
- + - - Lorem ipsum - Lorem ipsum - + Lorem ipsum - Lorem ipsum - -
-
-
+ Voir l'image en plein écran + + + +
@@ -641,7 +629,7 @@ Object { >
@@ -700,7 +688,7 @@ Object { >
@@ -864,7 +852,7 @@ Object { >
@@ -923,7 +911,7 @@ Object { >