change text for toggling back showing all future event occurrences
This commit is contained in:
@ -79,7 +79,10 @@ export const DateList = ({ event }: { event: EventFragment }) => {
|
||||
{futureOccurrences.length > 4 && (
|
||||
<div className={styles.showMore}>
|
||||
<button onClick={() => toggleDates()} className="button tertiary">
|
||||
{!showAllDates && (
|
||||
<span>Vis alle kommende datoer ({futureOccurrences.length})</span>
|
||||
)}
|
||||
{showAllDates && <span>Vis færre datoer</span>}
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user