Add various formatting for readability
This commit is contained in:
parent
ca09e318b7
commit
1edb5cd1ec
|
@ -51,10 +51,10 @@ export function MyForm(props) {
|
||||||
// Create a function to handle the form submission and add data to Firebase.
|
// Create a function to handle the form submission and add data to Firebase.
|
||||||
|
|
||||||
const submitHandler = async (event) => {
|
const submitHandler = async (event) => {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
const incident = { submitter, date, context, selectedOptions }
|
const incident = { submitter, date, context, selectedOptions }
|
||||||
const col = collection(db, `incidents/`)
|
const col = collection(db, `incidents/`)
|
||||||
const ref = await addDoc(col, incident)
|
const ref = await addDoc(col, incident)
|
||||||
console.log(ref)
|
console.log(ref)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue