From 3e3416fb1237aea8a8b723f104d6f49aefab8392 Mon Sep 17 00:00:00 2001 From: Rei Date: Fri, 29 Dec 2023 09:25:31 +0000 Subject: [PATCH] Various cleanup --- src/App.js | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/App.js b/src/App.js index 034ef30..0cd7bac 100644 --- a/src/App.js +++ b/src/App.js @@ -24,10 +24,6 @@ if (!getApps().length) { } - - - - // declare variables export function MyForm(props) { @@ -162,18 +158,14 @@ const db = getFirestore(getApp()); - - Existing entries -

Check here for existing entries:

-

Code added, work in progress to add said incidents to Firestore.

-

Incidents in the Database:

- {incidents.map((incidents) => ( -
-

Submitter: {incidents.submitter}

-

Date: {incidents.date}

-

Context: {incidents.context}

-

Selected Options: {incidents.selectedOptions.join(", ")}

+

Existing incidents in the database:

+ {incidents.map((incident) => ( +
+

{incident.submitter}

+

{incident.date}

+

{incident.context}

+

{incident.selectedOptions}

))}