Updated the Navigation.jsx
This commit is contained in:
parent
c7dc22b4a1
commit
e37c53d4c9
@ -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)",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user