diff --git a/admin/src/components/ui/content.tsx b/admin/src/components/ui/content.tsx index 0c00fb9..d439924 100644 --- a/admin/src/components/ui/content.tsx +++ b/admin/src/components/ui/content.tsx @@ -2,7 +2,7 @@ import type { ReactNode } from 'react'; import { Link } from 'react-router-dom'; import { ArrowLeft, X } from 'lucide-react'; import { buttonVariants } from './button'; -import { H1, H2, H3, Muted } from './typography'; +import { H2, H3, Muted } from './typography'; import { cn } from '../../lib/utils'; /* Page header: title + optional badge, actions on the right (stacks on mobile) */ @@ -18,7 +18,8 @@ export function PageHeader({ return (
-

{title}

+ {/* `

` należy do topbaru (tytuł strony) — nagłówek treści to `

` */} +

{title}

{badge}
{actions} @@ -90,7 +91,9 @@ export function MetaItem({ className?: string; }) { return ( - + {children} @@ -146,7 +149,12 @@ export function Chip({ > {children} {onRemove && ( - )} @@ -196,7 +204,9 @@ export function Tabs({ type="button" onClick={() => onChange(t.id)} className={`px-3.5 py-2 rounded-[10px] text-[0.9rem] font-semibold whitespace-nowrap cursor-pointer transition-all duration-150 ${ - active === t.id ? 'bg-card text-ink border border-line shadow-card' : 'border border-transparent text-dim hover:text-ink' + active === t.id + ? 'bg-card text-ink border border-line shadow-card' + : 'border border-transparent text-dim hover:text-ink' }`} > {t.label} diff --git a/admin/src/pages/users/UserClaims.tsx b/admin/src/pages/users/UserClaims.tsx index 6f51cc3..ff9cf90 100644 --- a/admin/src/pages/users/UserClaims.tsx +++ b/admin/src/pages/users/UserClaims.tsx @@ -43,7 +43,7 @@ export default function UserClaims() { return ( <> {claims.length > 0 && {claims.length}} diff --git a/admin/src/pages/users/UserInfo.tsx b/admin/src/pages/users/UserInfo.tsx index 3bcd4b9..946f8c8 100644 --- a/admin/src/pages/users/UserInfo.tsx +++ b/admin/src/pages/users/UserInfo.tsx @@ -85,7 +85,7 @@ export default function UserInfo() { const areaName = (muscle: string) => areas.find((a) => a.muscle === muscle)?.name ?? muscle; useTopbar({ - title: user ? `Profil — dane osobowe` : 'Dane osobowe', + title: 'Dane osobowe', back: id ? `/users/${id}` : '/users', }); diff --git a/admin/src/pages/users/UserProgress.tsx b/admin/src/pages/users/UserProgress.tsx index 8dd9892..2b4b921 100644 --- a/admin/src/pages/users/UserProgress.tsx +++ b/admin/src/pages/users/UserProgress.tsx @@ -35,10 +35,7 @@ export default function UserProgress() { return ( <> - } - /> + } />