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 (
|
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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user