From d2cb17038b8537a609be06be2ed7013dbe27117e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 8 Mar 2021 22:11:55 +0100 Subject: beginning the BIG refactor. moving editor stuff into per-episode hierarchy --- .../align/containers/annotations.container.js | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 animism-align/frontend/app/views/editor/align/containers/annotations.container.js (limited to 'animism-align/frontend/app/views/editor/align/containers/annotations.container.js') diff --git a/animism-align/frontend/app/views/editor/align/containers/annotations.container.js b/animism-align/frontend/app/views/editor/align/containers/annotations.container.js new file mode 100644 index 0000000..cfcf7be --- /dev/null +++ b/animism-align/frontend/app/views/editor/align/containers/annotations.container.js @@ -0,0 +1,28 @@ +import React, { Component } from 'react' +import { connect } from 'react-redux' + +import AnnotationForm from 'app/views/editor/align/components/annotations/annotation.form' +import AnnotationIndex from 'app/views/editor/align/components/annotations/annotation.index' + +class Annotations extends Component { + constructor(props){ + super(props) + } + render() { + return ( +
+ + {this.props.annotation.id && + + } +
+ ) + } +} + +const mapStateToProps = state => ({ + timeline: state.align.timeline, + annotation: state.align.annotation, +}) + +export default connect(mapStateToProps)(Annotations) -- cgit v1.2.3-70-g09d2