change text for toggling back showing all future event occurrences

This commit is contained in:
2024-08-12 20:23:27 +02:00
parent d36a146cb8
commit 69b96588b3

View File

@ -79,7 +79,10 @@ export const DateList = ({ event }: { event: EventFragment }) => {
{futureOccurrences.length > 4 && ( {futureOccurrences.length > 4 && (
<div className={styles.showMore}> <div className={styles.showMore}>
<button onClick={() => toggleDates()} className="button tertiary"> <button onClick={() => toggleDates()} className="button tertiary">
<span>Vis alle kommende datoer ({futureOccurrences.length})</span> {!showAllDates && (
<span>Vis alle kommende datoer ({futureOccurrences.length})</span>
)}
{showAllDates && <span>Vis færre datoer</span>}
</button> </button>
</div> </div>
)} )}