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 { useState, useEffect } from "react"
import { getFirestore,
@ -8,9 +8,10 @@ import { getFirestore,
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 'App.css'
import './App.css'
@ -29,11 +30,12 @@ import { getFirestore,
return (
<Form>
<Form.Group>
<Form.Label style={{ fontSize: '30px' }}>Select the words used by ray</Form.Label>
<Form.Check
type="checkbox"
label="poo"
value="poo"
checked={selectedOptions.includes('poo')}
label="poop"
value="poop"
checked={selectedOptions.includes('poop')}
onChange={handleCheckboxChange}
/>
<Form.Check
@ -62,4 +64,4 @@ import { getFirestore,
);
}
export default App;
export default MyForm;