diff --git a/src/components/Dashboard.jsx b/src/components/Dashboard.jsx index 10e1485..4dbba51 100644 --- a/src/components/Dashboard.jsx +++ b/src/components/Dashboard.jsx @@ -139,7 +139,9 @@ class Dashboard extends React.Component { actions.toggleInfoPopup()} + methods={{ + onClose: actions.toggleInfoPopup + }} />

{paragraph}

) +export default ({ app, methods }) => { + function renderIntro () { + return copy[app.language].legend.default.intro.map(txt =>

{txt}

) } - renderCategoryColors () { - const colors = copy[this.props.app.language].legend.view2d.colors.slice(0) + function renderCategoryColors () { + const colors = copy[app.language].legend.view2d.colors.slice(0) colors.reverse() return (
@@ -24,11 +23,11 @@ export default class InfoPopUp extends React.Component { ) } - renderView2DLegend () { + function renderView2DLegend () { return ( -
- - {this.renderView2DCopy()} +
+ + {renderIntro()}
@@ -38,7 +37,7 @@ export default class InfoPopUp extends React.Component { - {this.renderCategoryColors()} + {renderCategoryColors()}
@@ -76,9 +75,7 @@ export default class InfoPopUp extends React.Component { ) } - render () { - return ( -
{this.renderView2DLegend()}
- ) - } + return ( +
{renderView2DLegend()}
+ ) } diff --git a/src/js/data/copy.json b/src/js/data/copy.json index 47e642b..2722482 100644 --- a/src/js/data/copy.json +++ b/src/js/data/copy.json @@ -90,6 +90,11 @@ { "class": "category_group03", "label": "Category Group 03" }, { "class": "other", "label": "Other categories" } ] + }, + "default": { + "intro": [ + "Each event represents an occurence that is distinct in either time, space, or both. An event is represented by a coloured circle on both the map and the timeline." + ] } }, "toolbar": { diff --git a/src/store/initial.js b/src/store/initial.js index f3fa4cc..7398541 100644 --- a/src/store/initial.js +++ b/src/store/initial.js @@ -86,7 +86,7 @@ const initial = { isFetchingSources: false, isCardstack: true, - isInfopopup: false, + isInfopopup: true, isShowingSites: true } },