diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-02 00:35:06 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-02 00:35:06 +0200 |
| commit | 3e2c1d432d73823e66e19d0081b498ace467b231 (patch) | |
| tree | 67a8b66eb8334b97e031f2c91da668591132ede3 /animism-align/frontend/views/align/containers/annotations.container.js | |
| parent | 250527589e003420a84f36c4191d2e574f1ad28c (diff) | |
display the form
Diffstat (limited to 'animism-align/frontend/views/align/containers/annotations.container.js')
| -rw-r--r-- | animism-align/frontend/views/align/containers/annotations.container.js | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/animism-align/frontend/views/align/containers/annotations.container.js b/animism-align/frontend/views/align/containers/annotations.container.js new file mode 100644 index 0000000..e32757b --- /dev/null +++ b/animism-align/frontend/views/align/containers/annotations.container.js @@ -0,0 +1,44 @@ +import React, { Component } from 'react' +// import { Link } from 'react-router-dom' +import { bindActionCreators } from 'redux' +import { connect } from 'react-redux' + +import actions from '../../../actions' +// import * as alignActions from '../align.actions' + +import { ZOOM_STEPS } from '../constants' +import { clamp } from '../../../util' +import { positionToTime } from '../align.util' + +import AnnotationForm from '../components/annotations/annotation.form' + +class Annotations extends Component { + constructor(props){ + super(props) + // this.handleKeydown = this.handleKeydown.bind(this) + } + render() { + return ( + <div className='annotations'> + {this.props.annotation.start_ts && + <AnnotationForm /> + } + </div> + ) + } +} + +/* +- get the first sentence from the text +- display the form at that point +*/ + +const mapStateToProps = state => ({ + timeline: state.align.timeline, + annotation: state.align.annotation, +}) + +const mapDispatchToProps = dispatch => ({ +}) + +export default connect(mapStateToProps, mapDispatchToProps)(Annotations) |
