App: PageHeader H2 zamiast dubla H1 (h1 naleza do topbaru)

This commit is contained in:
tisachi
2026-10-16 23:50:49 +02:00
parent 4949007ea2
commit 469f6e17d4

View File

@@ -3,7 +3,7 @@ import { useEffect, useRef, useState } from 'react';
import { Link } from 'react-router-dom';
import { ArrowLeft, ChevronLeft, ChevronRight, 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: opcjonalny element przed tytułem (np. awatar), tytuł + badge,
@@ -24,7 +24,8 @@ export function PageHeader({
<div className="flex items-center justify-between gap-3 mb-5">
<div className="flex min-w-0 items-center gap-3 flex-wrap">
{leading}
<H1 className="mb-0">{title}</H1>
{/* `<h1>` należy do topbaru (tytuł strony) — nagłówek treści to `<h2>` */}
<H2 className="mb-0">{title}</H2>
{badge}
</div>
{actions && <div className="shrink-0">{actions}</div>}