feat: enhance layout and sidebar functionality with new PageHeader and SidebarContext

This commit is contained in:
JSC
2025-06-28 19:55:11 +02:00
parent 59ae7d8bf7
commit 75a76e33fe
11 changed files with 137 additions and 51 deletions

View File

@@ -3,11 +3,6 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/com
export function ActivityPage() {
return (
<div className="space-y-6">
<div>
<h1 className="text-3xl font-bold">Activity</h1>
<p className="text-muted-foreground">View recent activity and logs</p>
</div>
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
<Card>
<CardHeader>

View File

@@ -51,14 +51,6 @@ export function AdminUsersPage() {
return (
<div className="space-y-6">
<div className="flex items-center justify-between">
<div>
<h1 className="text-3xl font-bold">User Management</h1>
<p className="text-muted-foreground">Manage users and their permissions</p>
</div>
<Button>Add User</Button>
</div>
<Card>
<CardHeader>
<CardTitle>Users</CardTitle>

View File

@@ -10,11 +10,6 @@ export function DashboardPage() {
return (
<div className="space-y-6">
<div>
<h1 className="text-3xl font-bold">Dashboard</h1>
<p className="text-muted-foreground">Welcome back, {user.name}!</p>
</div>
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
{/* User Profile Card */}
<Card>

View File

@@ -42,7 +42,9 @@ export function LoginPage() {
const loadProviders = async () => {
try {
const providers = await authService.getOAuthProviders()
setOauthProviders(providers)
if (providers) {
setOauthProviders(providers)
}
} catch (error) {
console.error('Failed to load OAuth providers:', error)
}

View File

@@ -33,7 +33,9 @@ export function RegisterPage() {
const loadProviders = async () => {
try {
const providers = await authService.getOAuthProviders()
setOauthProviders(providers)
if (providers) {
setOauthProviders(providers)
}
} catch (error) {
console.error('Failed to load OAuth providers:', error)
}

View File

@@ -39,11 +39,6 @@ export function SettingsPage() {
return (
<div className="space-y-6">
<div>
<h1 className="text-3xl font-bold">Settings</h1>
<p className="text-muted-foreground">Manage your account settings and preferences</p>
</div>
<div className="grid gap-6 md:grid-cols-2">
<Card>
<CardHeader>