From 7e6dfb31af78b9d5a1a4ccec6998b14beb8a1194 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 10 Mar 2021 17:33:21 +0100 Subject: refactor annotation forms out of the directory nest --- .../editor/annotation/annotations.container.js | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 animism-align/frontend/app/views/editor/annotation/annotations.container.js (limited to 'animism-align/frontend/app/views/editor/annotation/annotations.container.js') diff --git a/animism-align/frontend/app/views/editor/annotation/annotations.container.js b/animism-align/frontend/app/views/editor/annotation/annotations.container.js new file mode 100644 index 0000000..3a247d0 --- /dev/null +++ b/animism-align/frontend/app/views/editor/annotation/annotations.container.js @@ -0,0 +1,31 @@ +import React, { Component } from 'react' +import { connect } from 'react-redux' + +import AnnotationForm from './components/annotation.form' +import AnnotationIndex from './components/annotation.index' + +import './annotation.form.css' +import './annotation.index.css' + +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