summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/paragraph/components
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-09-18 19:31:08 +0200
committerJules Laplace <julescarbon@gmail.com>2020-09-18 19:31:08 +0200
commitb562ad3c37ae6cd6d086e927a518bf257c93aead (patch)
tree88fabafbeea0ce5d5e149e82c4f86468d6117318 /animism-align/frontend/app/views/paragraph/components
parent108d4835d0942faf2305e702d698ae88a45022a5 (diff)
pullquote ui
Diffstat (limited to 'animism-align/frontend/app/views/paragraph/components')
-rw-r--r--animism-align/frontend/app/views/paragraph/components/paragraphTypes/paragraphTypes.text.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/animism-align/frontend/app/views/paragraph/components/paragraphTypes/paragraphTypes.text.js b/animism-align/frontend/app/views/paragraph/components/paragraphTypes/paragraphTypes.text.js
index 98be99b..5eedaa0 100644
--- a/animism-align/frontend/app/views/paragraph/components/paragraphTypes/paragraphTypes.text.js
+++ b/animism-align/frontend/app/views/paragraph/components/paragraphTypes/paragraphTypes.text.js
@@ -14,7 +14,13 @@ export const Paragraph = ({ paragraph, currentParagraph, currentAnnotation, onAn
{paragraph.annotations.map(annotation => (
<span
key={annotation.id}
- className={annotation.id === currentAnnotation ? 'current' : ''}
+ className={
+ annotation.type === 'pullquote_credit'
+ ? 'pullquote_credit'
+ : annotation.id === currentAnnotation
+ ? 'current'
+ : ''
+ }
onClick={e => onAnnotationClick(e, paragraph, annotation)}
dangerouslySetInnerHTML={{ __html: ' ' + annotation.text + ' ' }}
/>