blob: b6cdace6b6181fab5a2d82caffc6626978c27a31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
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'
import AnnotationIndex from '../components/annotations/annotation.index'
class Annotations extends Component {
constructor(props){
super(props)
}
render() {
return (
<div className='annotations'>
<AnnotationIndex />
{this.props.annotation.start_ts &&
<AnnotationForm />
}
</div>
)
}
}
const mapStateToProps = state => ({
timeline: state.align.timeline,
annotation: state.align.annotation,
})
const mapDispatchToProps = dispatch => ({
})
export default connect(mapStateToProps, mapDispatchToProps)(Annotations)
|