Adds profile and settings pages

This commit is contained in:
2026-06-22 23:59:04 +02:00
parent 6976eb4337
commit 2544e20b3c
49 changed files with 2741 additions and 34 deletions
+27
View File
@@ -0,0 +1,27 @@
import { ShieldOff } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { useNavigate } from '@tanstack/react-router';
import { Button } from '@/components/ui/button';
export function AccessDeniedPage() {
const { t } = useTranslation();
const navigate = useNavigate();
return (
<div className="flex flex-col items-center justify-center py-16 text-center space-y-4">
<ShieldOff className="size-12 text-destructive" />
<h1 className="text-2xl font-semibold" data-testid="access-denied-title">
{t('error.403.title')}
</h1>
<p className="text-muted-foreground max-w-sm" data-testid="access-denied-message">
{t('error.403.message')}
</p>
<Button
onClick={() => void navigate({ to: '/dashboard' })}
data-testid="access-denied-back-button"
>
{t('error.backToDashboard')}
</Button>
</div>
);
}