fix titling tags/categories

This commit is contained in:
Lachlan Kermode
2019-02-06 17:43:01 +00:00
parent 2a8087cc5e
commit e90d8abfe0
2 changed files with 2 additions and 4 deletions

View File

@@ -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>

View File

@@ -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>