diff --git a/apps/web/src/components/PageHero.astro b/apps/web/src/components/PageHero.astro index 10f54f8..7e8a0fe 100644 --- a/apps/web/src/components/PageHero.astro +++ b/apps/web/src/components/PageHero.astro @@ -2,9 +2,9 @@ import FishSilhouette from "./FishSilhouette.astro"; import WaterbodyMark from "./WaterbodyMark.astro"; import AtlasPairMark from "./AtlasPairMark.astro"; -const { eyebrow, title, description, variant, count, identity = title, secondaryIdentity = "waterbody" } = Astro.props as { eyebrow: string; title: string; description?: string; variant?: "water" | "fish" | "pair"; count?: number; identity?: string; secondaryIdentity?: string }; +const { eyebrow, title, description, variant, count, countLabel, identity = title, secondaryIdentity = "waterbody" } = Astro.props as { eyebrow: string; title: string; description?: string; variant?: "water" | "fish" | "pair"; count?: number; countLabel?: string; identity?: string; secondaryIdentity?: string }; --- {eyebrow}{title}{description && {description}} - {variant && {variant === "water" ? : variant === "pair" ? : }{typeof count === "number" && <>{String(count).padStart(2,"0")}{variant === "water" ? "водоёмов" : "видов рыб"}>}} + {variant && {variant === "water" ? : variant === "pair" ? : }{typeof count === "number" && <>{String(count).padStart(2,"0")}{countLabel ?? (variant === "water" ? "водоёмов" : "видов рыб")}>}} diff --git a/apps/web/src/pages/tackle/index.astro b/apps/web/src/pages/tackle/index.astro index b7c08d0..62e2733 100644 --- a/apps/web/src/pages/tackle/index.astro +++ b/apps/web/src/pages/tackle/index.astro @@ -53,7 +53,7 @@ const itemsParams = new URLSearchParams(filterParams); const rigsParams = new URLSearchParams(search ? { q: search } : {}); --- - + КатегорияВсе категории{Object.entries(categoryLabels).map(([value, label]) => {label})} Поиск
{description}