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 })) }