maybe fix
This commit is contained in:
parent
98481820f9
commit
a496e5ad2c
@ -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 (
|
||||
<div>
|
||||
<ModalGateway>
|
||||
{this.state.photoIsOpen &&
|
||||
<Modal onClose={this.togglePhoto}>
|
||||
<Carousel views={photos_carousel} currentIndex={1} trackProps={{onViewChange: (v) => this.onViewChange(v)}}/>
|
||||
{carousel}
|
||||
</Modal>
|
||||
}
|
||||
</ModalGateway>
|
||||
|
Loading…
x
Reference in New Issue
Block a user