Correct Config typo and add Form tickboxes

This commit is contained in:
Ray 2023-12-27 12:03:35 +00:00 committed by GitHub
parent fcade31893
commit 1db95e425a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import { firebaseConfig } from "./config/Config" import { firebaseConfig } from "./config/Config.js"
import { getApp, initializeApp } from "firebase/app" import { getApp, initializeApp } from "firebase/app"
import { useState, useEffect } from "react" import { useState, useEffect } from "react"
import { getFirestore, import { getFirestore,
@ -8,9 +8,10 @@ import { getFirestore,
getDocs } from "firebase/firestore"; getDocs } from "firebase/firestore";
import {getStorage} from "firebase/storage" import {getStorage} from "firebase/storage"
import Form from 'react-bootstrap/Form'; import Form from 'react-bootstrap/Form';
import Button from 'react-bootstrap/Button';
import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap/dist/css/bootstrap.min.css';
import 'App.css' import './App.css'
@ -29,11 +30,12 @@ import { getFirestore,
return ( return (
<Form> <Form>
<Form.Group> <Form.Group>
<Form.Label style={{ fontSize: '30px' }}>Select the words used by ray</Form.Label>
<Form.Check <Form.Check
type="checkbox" type="checkbox"
label="poo" label="poop"
value="poo" value="poop"
checked={selectedOptions.includes('poo')} checked={selectedOptions.includes('poop')}
onChange={handleCheckboxChange} onChange={handleCheckboxChange}
/> />
<Form.Check <Form.Check
@ -62,4 +64,4 @@ import { getFirestore,
); );
} }
export default App; export default MyForm;