diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-24 22:32:23 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-24 22:32:23 +0200 |
| commit | eee3193ecf604eaed30505128b2a1f7bb875d44a (patch) | |
| tree | 602ab4a22dba52aaa8fc23789684c95abcb6b151 /animism-align/frontend/app/views/viewer/transcript/components | |
| parent | f2d612de04da968a74efe94d0b448b465869d6e0 (diff) | |
displaying roman numerals in traanscript again
Diffstat (limited to 'animism-align/frontend/app/views/viewer/transcript/components')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js b/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js index ebc0103..be5818a 100644 --- a/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js +++ b/animism-align/frontend/app/views/viewer/transcript/components/elementTypes.text.js @@ -1,5 +1,7 @@ import React, { Component } from 'react' +import { ROMAN_NUMERALS } from 'app/constants' + export const Paragraph = ({ paragraph, currentParagraph, currentAnnotation, onAnnotationClick, onDoubleClick }) => { let className = paragraph.type if (className !== 'paragraph') className += ' paragraph' @@ -29,7 +31,7 @@ export const ParagraphHeader = ({ paragraph, currentParagraph, currentAnnotation className={className} onDoubleClick={e => onDoubleClick(e, paragraph)} > - <span>{text}</span> + <span>{ROMAN_NUMERALS[paragraph.sectionIndex]}{'. '}{text}</span> </div> ) } |
