mirror of https://github.com/status-im/fathom.git
access props through function arg
This commit is contained in:
parent
0039683b74
commit
1e60fc8102
|
@ -34,9 +34,9 @@ class Dashboard extends Component {
|
||||||
<nav class="main-nav animated fadeInDown">
|
<nav class="main-nav animated fadeInDown">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="logo"><a href="/">Fathom</a></li>
|
<li class="logo"><a href="/">Fathom</a></li>
|
||||||
<li class="visitors"><Realtime onError={this.props.onLogout} /></li>
|
<li class="visitors"><Realtime onError={props.onLogout} /></li>
|
||||||
<li class="spacer">·</li>
|
<li class="spacer">·</li>
|
||||||
<li class="signout"><LogoutButton onSuccess={this.props.onLogout} /></li>
|
<li class="signout"><LogoutButton onSuccess={props.onLogout} /></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
Loading…
Reference in New Issue