Various cleanup

This commit is contained in:
Ray 2023-12-29 09:25:31 +00:00 committed by GitHub
parent eacb126c45
commit 3e3416fb12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 15 deletions

View File

@ -24,10 +24,6 @@ if (!getApps().length) {
} }
// declare variables // declare variables
export function MyForm(props) { export function MyForm(props) {
@ -162,18 +158,14 @@ const db = getFirestore(getApp());
</Form.Group> </Form.Group>
<Form.Group> <Form.Group>
<Form.Label style={{ fontSize: '30px' }}>Existing entries</Form.Label> <h2>Existing incidents in the database:</h2>
<p>Check here for existing entries:</p> {incidents.map((incident) => (
<p>Code added, work in progress to add said incidents to Firestore.</p> <div key={incident.id}>
<h2>Incidents in the Database:</h2> <h2>{incident.submitter}</h2>
{incidents.map((incidents) => ( <h3>{incident.date}</h3>
<div key={incidents.id}> <h3>{incident.context}</h3>
<p>Submitter: {incidents.submitter}</p> <h3>{incident.selectedOptions}</h3>
<p>Date: {incidents.date}</p>
<p>Context: {incidents.context}</p>
<p>Selected Options: {incidents.selectedOptions.join(", ")}</p>
</div> </div>
))} ))}
</Form.Group> </Form.Group>