summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/align/components/annotations/annotationForms
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-28 14:11:46 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-28 14:11:46 +0200
commit778380446d278adf45a9491b699b7e324d9edb8c (patch)
tree5668af71143a3c6da12d4801258af61c0a64ac89 /animism-align/frontend/app/views/align/components/annotations/annotationForms
parentc28213f28693b44bb7cf9c272b3406adc76b1e33 (diff)
setting things as hidden
Diffstat (limited to 'animism-align/frontend/app/views/align/components/annotations/annotationForms')
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js16
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js5
2 files changed, 21 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js
new file mode 100644
index 0000000..a632e70
--- /dev/null
+++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js
@@ -0,0 +1,16 @@
+import React, { Component } from 'react'
+
+import { Select, Checkbox } from 'app/common'
+
+export const AnnotationFormSectionHeading = ({ annotation, handleSettingsSelect, handleSettingsChange }) => {
+ return (
+ <div className='options'>
+ <Checkbox
+ label="Hidden"
+ name="hidden"
+ checked={annotation.settings.hidden}
+ onChange={handleSettingsSelect}
+ />
+ </div>
+ )
+}
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
index 29f9def..0b36d9a 100644
--- a/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
+++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
@@ -1,4 +1,8 @@
import {
+ AnnotationFormSectionHeading,
+} from './annotationForm.text'
+
+import {
AnnotationFormVideo,
} from './annotationForm.video'
@@ -11,6 +15,7 @@ import {
} from './annotationForm.utility'
export const annotationFormLookup = {
+ section_heading: AnnotationFormSectionHeading,
image: AnnotationFormImage,
video: AnnotationFormVideo,
curtain: AnnotationFormCurtain,