Skip to content

Commit

Permalink
Collapse resolved incidents by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Sep 13, 2024
1 parent 9dc57b7 commit 92a8bda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/StatusDashboard/incidents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ export default function Incidents({ ongoing, onLoad, ...props }) {
</div>
<div className={`card__body ${styles.incidents}`}>
{open.map((issue, i) => <Incident key={i}>{issue}</Incident>)}
{closed.map((issue, i) => <Incident key={i}>{issue}</Incident>)}
{closed.length ? (
<details>
<summary>See previous incidents</summary>
{closed.map((issue, i) => <Incident key={i}>{issue}</Incident>)}
</details>
) : null}
</div>
</div>
);
Expand Down

0 comments on commit 92a8bda

Please sign in to comment.