QLFW-49: убрать служебные пометки с публичных страниц #43

Open
peppa-bot wants to merge 7 commits from task/qlfw-49 into main
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 35b07c8fd2 - Show all commits

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">