fix: don't display nav
This commit is contained in:
parent
bac422effc
commit
f197d1dbcb
2 changed files with 29 additions and 24 deletions
|
|
@ -77,18 +77,20 @@ export default async function WorshipPage({searchParams}: {
|
|||
</Container>
|
||||
</Section>
|
||||
|
||||
<Section padding={"small"}>
|
||||
<NextPrevButtons
|
||||
prev={{
|
||||
href: `/gottesdienst?week=${weekNumber(lastWeek)}`,
|
||||
text: "Vorige Woche"
|
||||
}}
|
||||
next={{
|
||||
href: `/gottesdienst?week=${weekNumber(toDate)}`,
|
||||
text: "Nächste Woche"
|
||||
}}
|
||||
/>
|
||||
</Section>
|
||||
{events.length > 0 &&
|
||||
<Section padding={"small"}>
|
||||
<NextPrevButtons
|
||||
prev={{
|
||||
href: `/gottesdienst?week=${weekNumber(lastWeek)}`,
|
||||
text: "Vorige Woche"
|
||||
}}
|
||||
next={{
|
||||
href: `/gottesdienst?week=${weekNumber(toDate)}`,
|
||||
text: "Nächste Woche"
|
||||
}}
|
||||
/>
|
||||
</Section>
|
||||
}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
@ -117,18 +117,21 @@ export default async function EventsPage({searchParams}: {
|
|||
</Container>
|
||||
</Section>
|
||||
|
||||
<Section padding={"small"}>
|
||||
<NextPrevButtons
|
||||
prev={{
|
||||
href: `/veranstaltungen?week=${weekNumber(lastWeek)}`,
|
||||
text: "Vorige Woche"
|
||||
}}
|
||||
next={{
|
||||
href: `/veranstaltungen?week=${weekNumber(toDate)}`,
|
||||
text: "Nächste Woche"
|
||||
}}
|
||||
/>
|
||||
</Section>
|
||||
{/*prevents bots indexing till infinity*/}
|
||||
{ events.length > 0 &&
|
||||
<Section padding={"small"}>
|
||||
<NextPrevButtons
|
||||
prev={{
|
||||
href: `/veranstaltungen?week=${weekNumber(lastWeek)}`,
|
||||
text: "Vorige Woche"
|
||||
}}
|
||||
next={{
|
||||
href: `/veranstaltungen?week=${weekNumber(toDate)}`,
|
||||
text: "Nächste Woche"
|
||||
}}
|
||||
/>
|
||||
</Section>
|
||||
}
|
||||
</>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in a new issue