Favicon and minor mobile fixes
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// frontend/src/components/Layout/Layout.jsx
|
||||
|
||||
import { Moon, Sun } from 'lucide-react';
|
||||
import { useState } from 'react';
|
||||
import { Outlet, useLocation, useNavigate } from 'react-router-dom';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { Outlet } from 'react-router-dom';
|
||||
import { getToken } from '../../services/api';
|
||||
import Navbar from './Navbar';
|
||||
|
||||
@@ -12,8 +12,13 @@ export default function Layout({ darkMode, setDarkMode }) {
|
||||
const [navSubtitle, setNavSubtitle] = useState('');
|
||||
const [showSettings, setShowSettings] = useState(false);
|
||||
|
||||
const location = useLocation();
|
||||
const navigate = useNavigate();
|
||||
useEffect(() => {
|
||||
if (navTitle) {
|
||||
document.title = `${navTitle} | VolleyManager`;
|
||||
} else {
|
||||
document.title = 'VolleyManager';
|
||||
}
|
||||
}, [navTitle]);
|
||||
|
||||
const handleLogout = () => {
|
||||
localStorage.removeItem('volleyToken');
|
||||
|
||||
Reference in New Issue
Block a user