diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js index cee1e2c..53560fd 100644 --- a/frontend/eslint.config.js +++ b/frontend/eslint.config.js @@ -23,7 +23,7 @@ export default defineConfig([ }, }, rules: { - 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], + 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]', argsIgnorePattern: '^[A-Z_]' }], }, }, ]) diff --git a/frontend/src/components/AppLayout.jsx b/frontend/src/components/AppLayout.jsx index 44bf849..3261529 100644 --- a/frontend/src/components/AppLayout.jsx +++ b/frontend/src/components/AppLayout.jsx @@ -22,8 +22,10 @@ const AppLayout = ({ children }) => { {/* Main content on the right, shifts when sidebar expands */} -
-
+
+
{children}
diff --git a/frontend/src/components/HeaderBar.jsx b/frontend/src/components/HeaderBar.jsx index cd9ea0f..7133fc6 100644 --- a/frontend/src/components/HeaderBar.jsx +++ b/frontend/src/components/HeaderBar.jsx @@ -1,22 +1,36 @@ import React from 'react'; import { NavLink } from 'react-router-dom'; -import { Settings, User } from 'lucide-react'; +import { Settings, User, Sun, Moon } from 'lucide-react'; import { useAuth } from '../contexts/AuthContext'; +import { useColorMode } from '../contexts/ThemeContext'; import logo from '../assets/logo.png'; const HeaderBar = () => { const { isAuthenticated, user } = useAuth(); + const { mode, toggleMode } = useColorMode(); + const isDark = mode === 'dark'; + return ( -
+
YBIT -

+

Yashwantrao Bhonsale Institute Of Technology

- {/* Right nav: Dashboard + Settings + Account/Login (large screens) */} + {/* Right nav: Dashboard + Settings + Theme toggle + Account/Login (large screens) */}