From 599d3e0758d6f1a3cf5ce69cfc03eab484c3ff17 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 23 Jul 2020 22:43:31 +0200 Subject: styling the sections --- .../app/views/viewer/sections/viewer.sections.js | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 animism-align/frontend/app/views/viewer/sections/viewer.sections.js (limited to 'animism-align/frontend/app/views/viewer/sections/viewer.sections.js') diff --git a/animism-align/frontend/app/views/viewer/sections/viewer.sections.js b/animism-align/frontend/app/views/viewer/sections/viewer.sections.js new file mode 100644 index 0000000..c4681b8 --- /dev/null +++ b/animism-align/frontend/app/views/viewer/sections/viewer.sections.js @@ -0,0 +1,47 @@ +import React, { Component } from 'react' +// import { Link } from 'react-router-dom' +import { connect } from 'react-redux' + +import actions from 'app/actions' +import ViewerSectionsNav from './viewer.sections.nav' +import { ROMAN_NUMERALS } from 'app/constants' +import { thumbnailURL } from 'app/views/align/align.util' + +class ViewerSections extends Component { + componentDidMount() { + } + + render() { + const { sections } = this.props + return ( +
+ {sections.map(section => { + console.log(section) + return ( +
+
+
+
+ {ROMAN_NUMERALS[section.index]}
+ {section.title} +
+
+ {section.media.map(media => media.type).join(', ')} +
+
+
+ ) + })} + +
+ ) + } +} + +const mapStateToProps = state => ({ + sections: state.viewer.sections, +}) + +export default connect(mapStateToProps)(ViewerSections) -- cgit v1.2.3-70-g09d2