diff options
Diffstat (limited to 'animism-align/frontend/app/views/editor/annotation/annotations.container.js')
| -rw-r--r-- | animism-align/frontend/app/views/editor/annotation/annotations.container.js | 31 |
1 files changed, 31 insertions, 0 deletions
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 ( + <div className='annotations'> + <AnnotationIndex /> + {this.props.annotation.id && + <AnnotationForm /> + } + </div> + ) + } +} + +const mapStateToProps = state => ({ + timeline: state.align.timeline, + annotation: state.align.annotation, +}) + +export default connect(mapStateToProps)(Annotations) |
