QLFW-49: убрать неиспользуемый параметр review
All checks were successful
All checks were successful
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c2e004b924
commit
35b07c8fd2
@ -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" />}
|
||||
|
||||
@ -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">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user