summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/align/components/annotations/annotation.form.js
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/app/views/align/components/annotations/annotation.form.js')
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotation.form.js17
1 files changed, 3 insertions, 14 deletions
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotation.form.js b/animism-align/frontend/app/views/align/components/annotations/annotation.form.js
index e0a66e4..7b1918a 100644
--- a/animism-align/frontend/app/views/align/components/annotations/annotation.form.js
+++ b/animism-align/frontend/app/views/align/components/annotations/annotation.form.js
@@ -5,24 +5,13 @@ import { connect } from 'react-redux'
import actions from 'app/actions'
-import { MEDIA_ANNOTATION_TYPES } from 'app/constants'
-import { clamp, timestamp, capitalize } from 'app/utils'
+import { ANNOTATION_SELECT_OPTIONS, MEDIA_ANNOTATION_TYPES } from 'app/constants'
+import { timestamp } from 'app/utils'
import { timeToPosition } from 'app/utils/align.utils'
import { Select } from 'app/common'
import { annotationFormLookup } from './annotationForms'
-const ANNOTATION_TYPES = [
- 'sentence', 'section_heading', 'heading_text', 'pullquote_credit', 'paragraph_end',
- 'footnote',
- 'text_plate',
- 'video', 'subtitle',
- 'image',
- 'gallery', 'carousel', 'grid', 'vitrine',
- 'gallery_advance',
- 'curtain', 'intro', 'schedule',
-].map(name => ({ name, label: capitalize(name.replace('_', ' ')) }))
-
const annotationTextTypes = new Set([
'sentence', 'section_heading', 'heading_text', 'pullquote_credit', 'footnote', 'text_plate',
])
@@ -148,7 +137,7 @@ class AnnotationForm extends Component {
<Select
name='type'
selected={annotation.type}
- options={ANNOTATION_TYPES}
+ options={ANNOTATION_SELECT_OPTIONS}
defaultOption='text'
onChange={this.handleSelect}
/>