From b4b975cd2e0592ea60532a1042f460eddc8446e3 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Wed, 8 May 2024 11:41:01 +0200 Subject: [PATCH] maybe fix? --- frontend/src/scripts/index.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index a470ddc..6155ba7 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -68,21 +68,24 @@ class Main extends Component { this.setState({faq: !this.state.faq}); } render(){ - let photos = []; + let photos_gallery = []; + let photos_carousel = [] for (const photo of this.state.photos){ - photos.push({ - source: photo.original, + photos_gallery.push({ src: photo.thumbnail, width: photo.original_width, height: photo.original_height, }) + photos_carousel.push({ + source: photo.original + }) }; return (
{this.state.photoIsOpen && - + } @@ -100,7 +103,7 @@ class Main extends Component { {this.state.page == "#gallery" &&
- +
} {this.state.page == "" &&