From 8cd5695a98c8dc45cc5cf055a9b81708687fdc59 Mon Sep 17 00:00:00 2001 From: CollinBeczak Date: Tue, 8 Oct 2024 19:26:30 -0500 Subject: [PATCH] formatting --- .../OpenStreetCamViewer.jsx | 121 +++++++++--------- 1 file changed, 60 insertions(+), 61 deletions(-) diff --git a/src/components/OpenStreetCamViewer/OpenStreetCamViewer.jsx b/src/components/OpenStreetCamViewer/OpenStreetCamViewer.jsx index a42c9706d..6dea8e5f7 100644 --- a/src/components/OpenStreetCamViewer/OpenStreetCamViewer.jsx +++ b/src/components/OpenStreetCamViewer/OpenStreetCamViewer.jsx @@ -39,73 +39,72 @@ const OpenStreetCamViewer = ({ images, initialImageKey, onClose }) => { const currentImage = currentIndex === -1 ? null : images[currentIndex] - return ( - - -
-
-
-
- {hasPriorImage() && - - } -
+ return ( + + +
+
+
+
+ {hasPriorImage() && + + } +
-
+
-
- {hasNextImage() && - - } -
-
-
+
+ {hasNextImage() && + + } +
+
+
-
- {currentImage && - setImageLoaded(true)} - alt="" - className="mr-w-full mr-h-auto mr-rounded mr-shadow" - /> - } - -
-
- {!imageLoaded ? - : -
-
- @{currentImage.username} -
-
- {format(parseISO(currentImage.shotDate), 'yyyy-MM-dd')} -
-
- } -
-
-
-
- ) +
+ {currentImage && + setImageLoaded(true)} + alt="" + className="mr-w-full mr-h-auto mr-rounded mr-shadow" + /> + } +
+
+ {!imageLoaded ? + : +
+
+ @{currentImage.username} +
+
+ {format(parseISO(currentImage.shotDate), 'yyyy-MM-dd')} +
+
+ } +
+
+ + + ) } OpenStreetCamViewer.propTypes = { - images: PropTypes.array.isRequired, - onClose: PropTypes.func, + images: PropTypes.array.isRequired, + onClose: PropTypes.func, } export default OpenStreetCamViewer