Replace static bullshit tags with bullshit tags from the state
This commit is contained in:
parent
bfa8c704d7
commit
2446ec7f95
1 changed files with 20 additions and 5 deletions
25
src/Nav.js
25
src/Nav.js
|
|
@ -66,15 +66,30 @@ class NavList extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
class TagNav extends Component {
|
class TagNav extends Component {
|
||||||
|
constructor (props) {
|
||||||
|
super(props);
|
||||||
|
|
||||||
|
this.state = {
|
||||||
|
topTags: [
|
||||||
|
'Tag 1',
|
||||||
|
'Tag 2',
|
||||||
|
'Really long tag',
|
||||||
|
'Really really really long tag',
|
||||||
|
'Another tag',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
topTags () {
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
// TODO: Populate these tags from the top tags in the post
|
// TODO: Populate these tags from the top tags in the post
|
||||||
let tags = (
|
let tags = (
|
||||||
<ul>
|
<ul>
|
||||||
<ListLink icon="tag" name="Tag 1" href="" />
|
{this.state.topTags.map(tag => (
|
||||||
<ListLink icon="tag" name="Tag 2" href="" />
|
<ListLink icon="tag" key={tag} name={tag} href={"/tag/" + tag} />
|
||||||
<ListLink icon="tag" name="Really long tag" href="" />
|
))}
|
||||||
<ListLink icon="tag" name="Really really really long tag" href="" />
|
|
||||||
<ListLink icon="tag" name="Another tag" href="" />
|
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue