Skip to content

Commit 2a87e64

Browse files
addyosmaniarnaudj
authored andcommitted
Make the ReactHN logo link back to /news
This particularly makes sense if we decide to go ahead with hiding the longer ‘React HN’ homelink text on narrower viewports. Folks can still tap the icon to go back to /news from one of the other views.
1 parent 96c8851 commit 2a87e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var App = React.createClass({
4444
return <div className="App" onClick={this.state.showSettings && this.toggleSettings}>
4545
<div className="App__wrap">
4646
<div className="App__header">
47-
<img src="img/logo.png" width="16" height="16" alt="" />{' '}
47+
<Link to="/news" className="App__homelinkicon"><img src="img/logo.png" width="16" height="16" alt="" /></Link>{' '}
4848
<Link to="/news" activeClassName="active" className="App__homelink">React HN</Link>{' '}
4949
<Link to="/newest" activeClassName="active">new</Link>{' | '}
5050
<Link to="/newcomments" activeClassName="active">comments</Link> {' | '}

0 commit comments

Comments
 (0)