Updated the Navigation.jsx

This commit is contained in:
Mathias Wagner 2023-07-08 21:17:04 +02:00
parent c7dc22b4a1
commit e37c53d4c9
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -5,7 +5,7 @@ import {AppBar, Button, CircularProgress, IconButton, Link, Stack, Typography, u
import {Menu} from "@mui/icons-material"; import {Menu} from "@mui/icons-material";
import {useNavigate} from "react-router-dom"; import {useNavigate} from "react-router-dom";
import routes from "@/common/routes"; import routes from "@/common/routes";
import {useState} from "react"; import {useEffect, useState} from "react";
const NAVBAR_HEIGHT = 80; const NAVBAR_HEIGHT = 80;
@ -23,6 +23,10 @@ export const Navigation = () => {
setTimeout(() => location.href = "https://dash.licenseapi.de", 500); setTimeout(() => location.href = "https://dash.licenseapi.de", 500);
} }
useEffect(() => {
setDashboardLoading(false);
}, []);
return ( return (
<AppBar position="fixed" sx={{height: NAVBAR_HEIGHT, boxShadow: "none", justifyContent: "center", <AppBar position="fixed" sx={{height: NAVBAR_HEIGHT, boxShadow: "none", justifyContent: "center",
backgroundColor: isDarkMode ? "rgba(0, 0, 0, 0.5)" : "rgba(255, 255, 255, 0.5)", backgroundColor: isDarkMode ? "rgba(0, 0, 0, 0.5)" : "rgba(255, 255, 255, 0.5)",