Skip to content

Commit 5beb283

Browse files
authored
fix: past townhall slides button changed to be conditionally rendered (#751)
* fix: added word-break to prevent overflowing text on event cards * feat: results button/link added to townhall page * fix: "Results" button changed to "Survey Results" * fix: added conditional rendering to past townhall slides button * fix: indentation issues
1 parent 939fd62 commit 5beb283

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

pages/town-hall.js

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -314,22 +314,24 @@ function TownHall() {
314314
<h3>{pastTownHall.title + ' // ' + pastTownHall.date}</h3>
315315
<p>{pastTownHall.description}</p>
316316
<ul className="list-unstyled">
317-
<li style={inlineButtonListStyle}>
318-
<Link href={pastTownHall.slides}>
319-
<a
320-
className="button"
321-
target="_blank"
322-
rel="noopener noreferrer"
323-
>
324-
<FontAwesomeIcon
325-
icon={faFileAlt}
326-
fixedWidth
327-
aria-hidden={true}
328-
/>{' '}
329-
Form Summaries and Slides
330-
</a>
331-
</Link>
332-
</li>{' '}
317+
{pastTownHall.slides && (
318+
<li style={inlineButtonListStyle}>
319+
<Link href={pastTownHall.slides}>
320+
<a
321+
className="button"
322+
target="_blank"
323+
rel="noopener noreferrer"
324+
>
325+
<FontAwesomeIcon
326+
icon={faFileAlt}
327+
fixedWidth
328+
aria-hidden={true}
329+
/>{' '}
330+
Form Summaries and Slides
331+
</a>
332+
</Link>
333+
</li>
334+
)}{' '}
333335
<li style={inlineButtonListStyle}>
334336
<Link href={pastTownHall.notes}>
335337
<a

0 commit comments

Comments
 (0)