From 778380446d278adf45a9491b699b7e324d9edb8c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 28 Jul 2020 14:11:46 +0200 Subject: setting things as hidden --- .../app/views/viewer/player/components.inline/inline.text.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js') diff --git a/animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js b/animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js index 8825479..f544e6f 100644 --- a/animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js +++ b/animism-align/frontend/app/views/viewer/player/components.inline/inline.text.js @@ -2,14 +2,14 @@ import React, { Component } from 'react' import { ROMAN_NUMERALS } from 'app/constants' -export const Paragraph = ({ paragraph, currentParagraph, currentAnnotation, onAnnotationClick, onDoubleClick }) => { +export const Paragraph = ({ paragraph, currentParagraph, currentAnnotation, onAnnotationClick }) => { + if (paragraph.hidden) return null let className = paragraph.type if (className !== 'paragraph') className += ' paragraph' if (currentParagraph) className += ' current' return (
onDoubleClick(e, paragraph)} > {paragraph.annotations.map(annotation => ( { - let className = currentParagraph ? 'header current' : 'header' +export const ParagraphHeading = ({ paragraph, currentParagraph, currentAnnotation, onAnnotationClick }) => { + if (paragraph.hidden) return null + let className = currentParagraph ? 'section_heading current' : 'section_heading' const text = paragraph.annotations.map(annotation => annotation.text).join(' ') return (
onDoubleClick(e, paragraph)} > {ROMAN_NUMERALS[paragraph.sectionIndex]}{'. '}{text}
-- cgit v1.2.3-70-g09d2