Files
HRM/src/routes/+layout.server.ts
T
eewing 069f38a313
CI / build (push) Has been skipped
CI / deploy (push) Successful in 50s
Implement user settings and dark mode toggle in layout component
- Added functionality to toggle dark mode based on user preferences, with state management and API integration for saving settings.
- Introduced a user avatar display with initials fallback and a dropdown menu for logout and dark mode options.
- Enhanced layout structure to conditionally render the header based on user authentication status.
2026-02-17 10:31:57 -06:00

8 lines
188 B
TypeScript

import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async ({ locals }) => {
return {
user: locals.user ? structuredClone(locals.user) : null
};
};