We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6680a3a commit b9a82f7Copy full SHA for b9a82f7
imgur-client/sass/header.scss
@@ -0,0 +1,5 @@
1
+.header {
2
+ .active {
3
+ font-weight: 900;
4
+ }
5
+}
imgur-client/src/components/header.jsx
@@ -32,7 +32,7 @@ module.exports = React.createClass({
32
renderTopics: function() {
33
return this.state.topics.slice(0, 4).map(function(topic){
34
return <li key={topic.id}>
35
- <Link to={"topics/" + topic.id}>
+ <Link activeClassName="active" to={"topics/" + topic.id}>
36
{topic.name}
37
</Link>
38
</li>
0 commit comments