From 953027ccdfb34c83a6d301401ccb47ec43b86825 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 29 May 2018 04:05:11 +0200 Subject: file list --- app/client/common/gallery.component.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 app/client/common/gallery.component.js (limited to 'app/client/common/gallery.component.js') diff --git a/app/client/common/gallery.component.js b/app/client/common/gallery.component.js new file mode 100644 index 0000000..8db7032 --- /dev/null +++ b/app/client/common/gallery.component.js @@ -0,0 +1,32 @@ +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 + const imageList = images.map(image => { + return ( +
+ +
+ ) + }) + return ( + + ) + } +} +const mapStateToProps = state => ({ +}) + +const mapDispatchToProps = (dispatch, ownProps) => ({ + // actions: bindActionCreators(liveActions, dispatch) +}) + +export default connect(mapStateToProps, mapDispatchToProps)(Gallery) -- cgit v1.2.3-70-g09d2