this.carousel
This commit is contained in:
parent
d5620ae8b2
commit
90d5108544
@ -49,7 +49,7 @@ class Main extends Component {
|
|||||||
new_index += this.state.photos.length
|
new_index += this.state.photos.length
|
||||||
}
|
}
|
||||||
this.setState({currentImage: new_index})
|
this.setState({currentImage: new_index})
|
||||||
this.carousel && this.carousel.setState({currentIndex: 1})
|
this.carousel && this. carousel.setState({currentIndex: 1})
|
||||||
}
|
}
|
||||||
onSubmit(event){
|
onSubmit(event){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
@ -102,7 +102,7 @@ class Main extends Component {
|
|||||||
<ModalGateway>
|
<ModalGateway>
|
||||||
{this.state.photoIsOpen &&
|
{this.state.photoIsOpen &&
|
||||||
<Modal onClose={this.togglePhoto}>
|
<Modal onClose={this.togglePhoto}>
|
||||||
{carousel}
|
{this.carousel}
|
||||||
</Modal>
|
</Modal>
|
||||||
}
|
}
|
||||||
</ModalGateway>
|
</ModalGateway>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user