mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 12:58:35 +03:00
fix titling tags/categories
This commit is contained in:
@@ -11,7 +11,6 @@ export default (props) => {
|
||||
function renderCategoryTree () {
|
||||
return (
|
||||
<div>
|
||||
<h2>{copy[props.language].toolbar.categories}</h2>
|
||||
{props.categories.map(cat => {
|
||||
return (<li
|
||||
key={cat.category.replace(/ /g, '_')}
|
||||
@@ -31,7 +30,7 @@ export default (props) => {
|
||||
|
||||
return (
|
||||
<div className='react-innertabpanel'>
|
||||
<h2>{copy[props.language].toolbar.explore_by_category__title}</h2>
|
||||
<h2>{copy[props.language].toolbar.categories}</h2>
|
||||
<p>{copy[props.language].toolbar.explore_by_category__description}</p>
|
||||
{renderCategoryTree()}
|
||||
</div>
|
||||
|
||||
@@ -63,7 +63,6 @@ class TagListPanel extends React.Component {
|
||||
renderTree () {
|
||||
return (
|
||||
<div>
|
||||
<h2>{copy[this.props.language].toolbar.tags}</h2>
|
||||
{this.state.treeComponents.map(c => c)}
|
||||
</div>
|
||||
)
|
||||
@@ -72,7 +71,7 @@ class TagListPanel extends React.Component {
|
||||
render () {
|
||||
return (
|
||||
<div className='react-innertabpanel'>
|
||||
<h2>{copy[this.props.language].toolbar.explore_by_tag__title}</h2>
|
||||
<h2>{copy[this.props.language].toolbar.tags}</h2>
|
||||
<p>{copy[this.props.language].toolbar.explore_by_tag__description}</p>
|
||||
{this.renderTree()}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user