mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-12 13:36:43 +00:00
fix navbar bug
This commit is contained in:
parent
b1039eb959
commit
e7c1486e78
1 changed files with 1 additions and 3 deletions
|
|
@ -5,7 +5,6 @@ import * as ROUTES from '../constants/routes';
|
||||||
//Redux
|
//Redux
|
||||||
import {connect} from 'react-redux';
|
import {connect} from 'react-redux';
|
||||||
import {selectProfile} from '../store/firebase';
|
import {selectProfile} from '../store/firebase';
|
||||||
// import {selectAuthState} from '../store/auth';
|
|
||||||
// Style
|
// Style
|
||||||
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
|
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
|
||||||
import {faCode, faSignOutAlt, faUser} from '@fortawesome/free-solid-svg-icons';
|
import {faCode, faSignOutAlt, faUser} from '@fortawesome/free-solid-svg-icons';
|
||||||
|
|
@ -67,7 +66,7 @@ const NavBar: FC<IProps> = ({isEmpty, isLoaded}) => {
|
||||||
);
|
);
|
||||||
|
|
||||||
/** Display appropriated links after loading given authenticated prop */
|
/** Display appropriated links after loading given authenticated prop */
|
||||||
const RenderLinks = !isLoaded && !isEmpty ? privateLinks : publicLinks;
|
const RenderLinks = isLoaded && !isEmpty ? privateLinks : publicLinks;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<nav className="navbar bg-dark">
|
<nav className="navbar bg-dark">
|
||||||
|
|
@ -83,4 +82,3 @@ const NavBar: FC<IProps> = ({isEmpty, isLoaded}) => {
|
||||||
|
|
||||||
/** connect HOC subscribes to the store */
|
/** connect HOC subscribes to the store */
|
||||||
export default connect(selectProfile)(NavBar);
|
export default connect(selectProfile)(NavBar);
|
||||||
//NavBar;
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue