From 7261d719295f62e6498e15580a8ceda302c45b1a Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Mon, 7 Oct 2024 17:01:56 +0200 Subject: [PATCH] gallery? --- frontend/src/scripts/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index b22e1bf..ac8f60c 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -47,6 +47,9 @@ class Main extends Component { } window.addEventListener("hashchange", (e) => {this.onHashChange(e)}) } + openGallery = (i) => { + this.setState({gallery_open: i}) + } closePhoto = () => { this.setState(state => ({ photoIsOpen: false })) }