fix: don't display nav

This commit is contained in:
Benno Tielen 2025-02-03 14:21:25 +01:00
parent bac422effc
commit f197d1dbcb
2 changed files with 29 additions and 24 deletions

View file

@ -77,6 +77,7 @@ export default async function WorshipPage({searchParams}: {
</Container> </Container>
</Section> </Section>
{events.length > 0 &&
<Section padding={"small"}> <Section padding={"small"}>
<NextPrevButtons <NextPrevButtons
prev={{ prev={{
@ -89,6 +90,7 @@ export default async function WorshipPage({searchParams}: {
}} }}
/> />
</Section> </Section>
}
</> </>
) )
} }

View file

@ -117,6 +117,8 @@ export default async function EventsPage({searchParams}: {
</Container> </Container>
</Section> </Section>
{/*prevents bots indexing till infinity*/}
{ events.length > 0 &&
<Section padding={"small"}> <Section padding={"small"}>
<NextPrevButtons <NextPrevButtons
prev={{ prev={{
@ -129,6 +131,7 @@ export default async function EventsPage({searchParams}: {
}} }}
/> />
</Section> </Section>
}
</> </>
) )
} }