diff --git a/src/App.js b/src/App.js index d279b29..32d0e28 100644 --- a/src/App.js +++ b/src/App.js @@ -1,90 +1,92 @@ import { firebaseConfig } from "./config/Config.js" import { getApp, initializeApp } from "firebase/app" import { useState, useEffect } from "react" -import { getFirestore, +import { + getFirestore, collection, - getDoc, - doc, - getDocs } from "firebase/firestore"; - import {getStorage} from "firebase/storage" - import Form from 'react-bootstrap/Form'; - import Button from 'react-bootstrap/Button'; - import 'bootstrap/dist/css/bootstrap.min.css'; - import Col from 'react-bootstrap/Col'; + getDoc, + doc, + getDocs +} from "firebase/firestore"; +import { getStorage } from "firebase/storage" +import Form from 'react-bootstrap/Form'; +import Button from 'react-bootstrap/Button'; +import 'bootstrap/dist/css/bootstrap.min.css'; +import Col from 'react-bootstrap/Col'; - import './App.css' +import './App.css' - function MyForm() { - const [selectedOptions, setSelectedOptions] = useState([]); +function MyForm() { + const [selectedOptions, setSelectedOptions] = useState([]); - const handleCheckboxChange = (event) => { - const { value, checked } = event.target; - if (checked) { - setSelectedOptions([...selectedOptions, value]); - } else { - setSelectedOptions(selectedOptions.filter((option) => option !== value)); - } - }; - - return ( -
- - Ray Ray's Word Bingo - - - Enter submitter name: - - Enter the date the shennanigans occurred (dd-mm-yyyy): - - Enter context for this tamper tantrum: - - Select the words used by Ray during his little tamper tantrum: - - - - - - - - - - -

Existing entries

-

To be added

-
-
- - ); + const handleCheckboxChange = (event) => { + const { value, checked } = event.target; + if (checked) { + setSelectedOptions([...selectedOptions, value]); + } else { + setSelectedOptions(selectedOptions.filter((option) => option !== value)); } + }; - export default MyForm; + return ( +
+ + Ray Ray's Word Bingo + + + Enter submitter name: + + Enter the date the shennanigans occurred (dd-mm-yyyy): + + Enter context for this tamper tantrum: + + Select the words used by Ray during his little tamper tantrum: + + + + + + + + + + +

Existing entries

+

To be added

+
+
+ + ); +} + +export default MyForm;