Merge pull request 'Feature/Navbarloggedin' (#63) from feature/navbarLoggedIn into main
This commit is contained in:
commit
5a1b060338
1 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
import React, { useState, useEffect } from "react";
|
import React, { useState, useEffect } from "react";
|
||||||
import { Button } from "./Button";
|
import { Button } from "./Button";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
|
import { useAuth } from "../auth/AuthProvider";
|
||||||
import "./Navbar.css";
|
import "./Navbar.css";
|
||||||
import "@fortawesome/fontawesome-free/css/all.css";
|
import "@fortawesome/fontawesome-free/css/all.css";
|
||||||
|
|
||||||
|
@ -57,6 +58,11 @@ function Navbar() {
|
||||||
Anleitung
|
Anleitung
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
|
{isLoggedIn ? (
|
||||||
|
console.log("Eingeloggt")
|
||||||
|
): (
|
||||||
|
console.log("Nicht eingeloggt")
|
||||||
|
)}
|
||||||
<li>
|
<li>
|
||||||
<Link
|
<Link
|
||||||
to="/login"
|
to="/login"
|
||||||
|
|
Loading…
Reference in a new issue