diff --git a/src/app/(site)/[locale]/about/page.tsx b/src/app/(site)/[locale]/about/page.tsx index d6f11d3..a73146b 100644 --- a/src/app/(site)/[locale]/about/page.tsx +++ b/src/app/(site)/[locale]/about/page.tsx @@ -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 0} review={false}> + return 0}> {aboutText.length > 0 &&
{/* eslint-disable-next-line @next/next/no-img-element -- загруженные сотрудниками фото отдаёт Payload */} {aboutPhoto && {aboutPhoto.alt}} diff --git a/src/components/SectionPage.tsx b/src/components/SectionPage.tsx index 467cc67..ef9a3e8 100644 --- a/src/components/SectionPage.tsx +++ b/src/components/SectionPage.tsx @@ -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 <>