blob: 0e1f44dd0319087db09026907d60aa8190ceb938 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import { h, Component } from 'preact'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
class Gallery extends Component {
constructor(props){
super()
}
render(){
const { title, images } = this.props
images.push(images[0])
const imageList = images.map(image => {
return (
<div>
<img src={image.url} />
</div>
)
})
return (
<div class='gallery'>
{imageList}
</div>
)
}
}
const mapStateToProps = state => ({
})
const mapDispatchToProps = (dispatch, ownProps) => ({
// actions: bindActionCreators(liveActions, dispatch)
})
export default connect(mapStateToProps, mapDispatchToProps)(Gallery)
|