Skip to content

Commit

Permalink
edit state name to logged #40
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedsalah7 committed Nov 3, 2021
1 parent 743ebee commit 162dc4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/Navbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Logo from '../../asstes/logo.png';
import PresonImg from '../../asstes/avatar.png';

function NavBar() {
const [state, setstate] = useState(true);
const [logged, setLogged] = useState(true);
return (
<Container maxWidth="xl">
<nav className="container">
Expand Down Expand Up @@ -60,7 +60,7 @@ function NavBar() {
<ListItemText primary="Host my House" style={{ color: '#fff' }} />
</Link>
</Button>
{state ? (
{logged ? (
<Link component={RouterLink} to="/">
<Avatar src={PresonImg} />
</Link>
Expand Down

0 comments on commit 162dc4d

Please sign in to comment.