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 && (
|
{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>
|
||||||
)}
|
)}
|
||||||
|
Reference in New Issue
Block a user