diff --git a/frontend/src/components/ContactSection.tsx b/frontend/src/components/ContactSection.tsx index 0d71e09..3e45210 100644 --- a/frontend/src/components/ContactSection.tsx +++ b/frontend/src/components/ContactSection.tsx @@ -10,7 +10,7 @@ import { InlineEdit } from './admin/InlineEdit' import { SingletonPill } from '../admin/Editable' import { API_URL } from '../config' -export function ContactSection() { +export function ContactSection({ bare = false }: { bare?: boolean } = {}) { const { brand, contact_section: content } = useSite() const { t } = useLang() const save = useFieldSaver() @@ -100,13 +100,17 @@ export function ContactSection() { return (
- -
+ {!bare && ( + <> + +
+ + )}
diff --git a/frontend/src/components/PageHero.tsx b/frontend/src/components/PageHero.tsx index cfd822e..9be7bb4 100644 --- a/frontend/src/components/PageHero.tsx +++ b/frontend/src/components/PageHero.tsx @@ -12,9 +12,11 @@ import { ImageField } from './admin/ImageField' type PageHeroProps = { /** کلید هیرو صفحه در دیتابیس — عنوان/توضیح درجا ویرایش‌پذیر می‌شوند */ pageKey: string + /** تصویر پس‌زمینه را رندر نکن — صفحه تصویر پیوستهٔ خودش را دارد */ + hideImage?: boolean } -export function PageHero({ pageKey }: PageHeroProps) { +export function PageHero({ pageKey, hideImage = false }: PageHeroProps) { const hero = usePageHero(pageKey) const { t, href } = useLang() const save = useFieldSaver() @@ -27,7 +29,7 @@ export function PageHero({ pageKey }: PageHeroProps) { return (
- {hero.image && } + {hero.image && !hideImage && }