blob: cfcf7be26b0ce86525851941160f53f6c91f62d1 (
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
|
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 (
<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)
|