Made the logo link to home

This commit is contained in:
2019-06-02 23:25:49 +10:00
parent b76d22137f
commit 3861dceef3
4 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ export default class App extends React.Component {
render() {
return (
<div className = 'central'>
<img className='banner' src={'/img/flag_scaled.png'} />
<a className='banner' href='/'><img src={'/img/flag_scaled.png'} /></a>
<BrowserRouter>
{ GA.init() && <GA.RouteTracker /> }
<Switch>
-2
View File
@@ -28,7 +28,6 @@ class CommonLinks extends React.Component {
if (this.props.loggedIn) {
return (
<div className='panel'>
<p><Link to='/' onClick={this.props.onClickHome}>Return Home</Link></p>
<p><Link to='/profile' onClick={this.props.onClickProfile}>Your Kingdom</Link></p>
<p><Link to='/equipment' onClick={this.props.onClickCombatLog}>Your Equipment</Link></p>
<p><Link to='/ladder' onClick={this.props.onClickLadder}>Game Ladder</Link></p>
@@ -45,7 +44,6 @@ class CommonLinks extends React.Component {
} else { //if not logged in
return (
<div className='panel'>
<p><Link to='/' onClick={this.props.onClickHome}>Return Home</Link></p>
<p><Link to='/signup' onClick={this.props.onClickSignup}>Sign Up</Link></p>
<p><Link to='/login' onClick={this.props.onClickLogin}>Login</Link></p>
<p><Link to='/passwordrecover' onClick={this.props.onClickPasswordRecover}>Recover Password</Link></p>