Seperate each incident with a line

This commit is contained in:
Ray 2023-12-29 11:25:34 +00:00 committed by GitHub
parent 5dc10672c1
commit e5afa98767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,7 @@ export function MyForm(props) {
<Form.Group>
<h2>Existing incidents in the database:</h2>
{incidents.map((incident) => (
{incidents.map((incident, index) => (
<div key={incident.id}>
<h3><u>Incident ID:</u></h3>
<p>{incident.id}</p>
@ -183,6 +183,7 @@ export function MyForm(props) {
<p>{incident.context}</p>
<h3>What word's did Ray use this time?:</h3>
<p>{incident.selectedOptions.join(', ')}</p>
{index !== incidents.length - 1 && <hr style={{ fontWeight: 'bold' }} />}
</div>
))}
</Form.Group>