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>
|
</Container>
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
<Section padding={"small"}>
|
{events.length > 0 &&
|
||||||
<NextPrevButtons
|
<Section padding={"small"}>
|
||||||
prev={{
|
<NextPrevButtons
|
||||||
href: `/gottesdienst?week=${weekNumber(lastWeek)}`,
|
prev={{
|
||||||
text: "Vorige Woche"
|
href: `/gottesdienst?week=${weekNumber(lastWeek)}`,
|
||||||
}}
|
text: "Vorige Woche"
|
||||||
next={{
|
}}
|
||||||
href: `/gottesdienst?week=${weekNumber(toDate)}`,
|
next={{
|
||||||
text: "Nächste Woche"
|
href: `/gottesdienst?week=${weekNumber(toDate)}`,
|
||||||
}}
|
text: "Nächste Woche"
|
||||||
/>
|
}}
|
||||||
</Section>
|
/>
|
||||||
|
</Section>
|
||||||
|
}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -117,18 +117,21 @@ export default async function EventsPage({searchParams}: {
|
||||||
</Container>
|
</Container>
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
<Section padding={"small"}>
|
{/*prevents bots indexing till infinity*/}
|
||||||
<NextPrevButtons
|
{ events.length > 0 &&
|
||||||
prev={{
|
<Section padding={"small"}>
|
||||||
href: `/veranstaltungen?week=${weekNumber(lastWeek)}`,
|
<NextPrevButtons
|
||||||
text: "Vorige Woche"
|
prev={{
|
||||||
}}
|
href: `/veranstaltungen?week=${weekNumber(lastWeek)}`,
|
||||||
next={{
|
text: "Vorige Woche"
|
||||||
href: `/veranstaltungen?week=${weekNumber(toDate)}`,
|
}}
|
||||||
text: "Nächste Woche"
|
next={{
|
||||||
}}
|
href: `/veranstaltungen?week=${weekNumber(toDate)}`,
|
||||||
/>
|
text: "Nächste Woche"
|
||||||
</Section>
|
}}
|
||||||
|
/>
|
||||||
|
</Section>
|
||||||
|
}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue