maybe fix

This commit is contained in:
Martin Quarda 2024-05-08 13:32:20 +02:00
parent 98481820f9
commit a496e5ad2c

View File

@ -94,12 +94,15 @@ class Main extends Component {
} }
} }
let carousel = <Carousel views={photos_carousel} currentIndex={0} trackProps={{onViewChange: (v) => this.onViewChange(v)}}/>
carousel.setState({currentIndex: 1})
return ( return (
<div> <div>
<ModalGateway> <ModalGateway>
{this.state.photoIsOpen && {this.state.photoIsOpen &&
<Modal onClose={this.togglePhoto}> <Modal onClose={this.togglePhoto}>
<Carousel views={photos_carousel} currentIndex={1} trackProps={{onViewChange: (v) => this.onViewChange(v)}}/> {carousel}
</Modal> </Modal>
} }
</ModalGateway> </ModalGateway>