change to red!

This commit is contained in:
Lachlan Kermode
2020-07-01 19:13:19 +02:00
parent c2b1440f93
commit 2b9975397f
5 changed files with 6 additions and 4 deletions

View File

@@ -1,11 +1,12 @@
import React from 'react'
import marked from 'marked'
import copy from '../common/data/copy.json'
export default ({ ui, app, methods }) => {
function renderIntro () {
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>)
return introCopy.map(txt => <p dangerouslySetInnerHTML={{ __html: marked(txt) }} />)
}
function renderHalfWithDot () {