mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
updated copy mechanism for display title and intro text
This commit is contained in:
committed by
Lachlan Kermode
parent
f02ee50ed8
commit
455bf64fca
@@ -3,7 +3,9 @@ import copy from '../common/data/copy.json'
|
||||
|
||||
export default ({ ui, app, methods }) => {
|
||||
function renderIntro () {
|
||||
return copy[app.language].legend.default.intro.map(txt => <p>{txt}</p>)
|
||||
var introCopy = copy[app.language].legend.default.intro
|
||||
if (process.env.store.text && process.env.store.text.introCopy) introCopy = process.env.store.text.introCopy
|
||||
return introCopy.map(txt => <p>{txt}</p>)
|
||||
}
|
||||
|
||||
function renderHalfWithDot () {
|
||||
@@ -83,7 +85,7 @@ export default ({ ui, app, methods }) => {
|
||||
</div>
|
||||
<br/>
|
||||
<div>
|
||||
<p>In narratives, arrows indicate physical movement between two events.</p>
|
||||
<p>In narrative mode, arrows indicate physical movement between two events.</p>
|
||||
</div>
|
||||
|
||||
{
|
||||
|
||||
@@ -149,7 +149,7 @@ class Toolbar extends React.Component {
|
||||
|
||||
renderToolbarTabs () {
|
||||
let title = copy[this.props.language].toolbar.title
|
||||
if (process.env.title) title = process.env.title
|
||||
if (process.env.display_title) title = process.env.display_title
|
||||
const narrativesLabel = copy[this.props.language].toolbar.narratives_label
|
||||
const tagsLabel = copy[this.props.language].toolbar.tags_label
|
||||
const categoriesLabel = 'Categories' // TODO:
|
||||
|
||||
Reference in New Issue
Block a user