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 ( -
To be added
-To be added
+