{
const navigate = useNavigate();
const dispach = useDispatch();
@@ -109,7 +106,7 @@ const DashboardLayout = ({ isOnline }) => {
// Set a timer to hide the splash screen after 3 seconds
const timer = setTimeout(() => {
setSplashVisible(false);
- },1000); // 3000ms = 3 seconds
+ }, 1000); // 3000ms = 3 seconds
// Cleanup the timer
return () => clearTimeout(timer);
@@ -123,9 +120,9 @@ const DashboardLayout = ({ isOnline }) => {
// dispach(loginUser(false));
setIsAuthenticate(false);
Cookies.remove("isAuthenticated");
- localStorage.removeItem('refreshToken')
- localStorage.removeItem('accessToken')
- localStorage.removeItem('refreshTokenExp')
+ localStorage.removeItem("refreshToken");
+ localStorage.removeItem("accessToken");
+ localStorage.removeItem("refreshTokenExp");
navigate("/login");
};
@@ -317,9 +314,11 @@ const DashboardLayout = ({ isOnline }) => {
);
default:
- return
- Home
-
+ return (
+
+ Home
+
+ );
}
};
@@ -328,35 +327,44 @@ const DashboardLayout = ({ isOnline }) => {
}
return (
-
-
+
+
+
+
-
- No Internet !
-
+
+
+ No Internet !
+
- {/* {
zIndex={999}
>
- */}
+ */}
- {slideFromRight ? null : (
-
+ )}
- />
- )}
-
- {subMenuTitle}
-
-
-
- )
- )}
-
-
- );
- } else if (type === "title") {
- return (
-