hide contact form into volunteer form

This commit is contained in:
Esteban Paz 2026-07-28 09:16:47 -05:00
parent b543cd1aa0
commit 3326d8955f
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import { createTranslator, t } from "../../i18n";
const tl = createTranslator(Astro.currentLocale); const tl = createTranslator(Astro.currentLocale);
const isHebrew = Astro.currentLocale === "he"; const isHebrew = Astro.currentLocale === "he";
const { hideContact } = Astro.props;
--- ---
<div id="contact" class="bg-[#22523F]"> <div id="contact" class="bg-[#22523F]">
@ -52,7 +53,7 @@ const isHebrew = Astro.currentLocale === "he";
> >
</p> </p>
<FormContact client:load locale={Astro.currentLocale} /> {!hideContact && <FormContact client:load locale={Astro.currentLocale} />}
</div> </div>
<div <div

View File

@ -127,7 +127,7 @@ if (routeKey === "formulario") {
</div> </div>
)} )}
<FooterSection /> <FooterSection hideContact={routeKey === "formulario"} />
</MainLayout> </MainLayout>