QLFW-49: убрать неиспользуемый параметр review
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 4с
peppa/test test: success за 1с
peppa/build build: success за 48с
ci / checks (pull_request) Successful in 1m28s
deploy / deploy (pull_request) Successful in 3m8s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Peppa 2026-11-20 15:40:21 +05:00
parent c2e004b924
commit 35b07c8fd2
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ export default async function Page({ params }: { params: Promise<{ locale: strin
const about = await loadAbout(locale)
const aboutText = paragraphs(about?.text)
const aboutPhoto = mediaOf(about?.photo)
return <SectionPage legal={await loadLegal(locale)} t={t} locale={locale} path="/about" title={t.sections.about} showNews={m.news.length > 0} review={false}>
return <SectionPage legal={await loadLegal(locale)} t={t} locale={locale} path="/about" title={t.sections.about} showNews={m.news.length > 0}>
{aboutText.length > 0 && <section className="mb-12 max-w-3xl">
{/* eslint-disable-next-line @next/next/no-img-element -- загруженные сотрудниками фото отдаёт Payload */}
{aboutPhoto && <img src={aboutPhoto.url} alt={aboutPhoto.alt} className="mb-6 h-auto w-full" />}

View File

@ -3,7 +3,7 @@ import { Footer } from './Footer'
import type { CmsLegal } from '@/lib/legal-model'
import type { Dict, Locale } from '@/i18n'
export function SectionPage({ t, locale, path, title, showNews, legal, children, review = true }: { t: Dict; locale: Locale; path: string; title: string; showNews: boolean; legal: CmsLegal | null; children: React.ReactNode; review?: boolean }) {
export function SectionPage({ t, locale, path, title, showNews, legal, children }: { t: Dict; locale: Locale; path: string; title: string; showNews: boolean; legal: CmsLegal | null; children: React.ReactNode }) {
return <>
<Header t={t} locale={locale} path={path} showProjects showNews={showNews} />
<main className="mx-auto max-w-6xl px-5 pb-20 pt-64 sm:px-8 sm:pt-56 md:pt-44">