# HG changeset patch # User Alexandre Segura # Date 1498224103 -7200 # Node ID a6bd1aaddc341083e69a10adebe06299f1ff2d49 # Parent b3a02ea6d09701ec26a6804e5a0b8a24f545bd03 Add online/offline indicator. diff -r b3a02ea6d097 -r a6bd1aaddc34 client/src/App.scss --- a/client/src/App.scss Fri Jun 23 11:16:34 2017 +0200 +++ b/client/src/App.scss Fri Jun 23 15:21:43 2017 +0200 @@ -43,6 +43,13 @@ } } +.navbar { + .material-icons { + font-size: 20px; + line-height: 20px; + } +} + .hovering-menu { position: absolute; z-index: 1; @@ -176,6 +183,7 @@ &-margin-comment { width: 33.3333%; + padding-left: 15px; } } diff -r b3a02ea6d097 -r a6bd1aaddc34 client/src/components/Navbar.js --- a/client/src/components/Navbar.js Fri Jun 23 11:16:34 2017 +0200 +++ b/client/src/components/Navbar.js Fri Jun 23 15:21:43 2017 +0200 @@ -37,6 +37,14 @@ ); } +const Online = ({ offline }) => { + return ( + + signal_wifi_4_bar + + ) +} + class AppNavbar extends Component { onClickHome = (e) => { @@ -63,7 +71,8 @@ Sessions @@ -79,6 +88,7 @@ return { isAuthenticated: state['isAuthenticated'], currentUser: state['currentUser'], + offline: state['offline'] }; }