Move import's to top as part of proper declaring

This commit is contained in:
Ray 2023-12-29 09:00:07 +00:00 committed by GitHub
parent 098ee40a2c
commit 62d3224651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -12,11 +12,6 @@ import {
addDoc addDoc
} from "firebase/firestore"; } from "firebase/firestore";
if (!getApps().length) {
initializeApp(firebaseConfig);
}
// Import required compenets from Bootstrap and React-Boostrap // Import required compenets from Bootstrap and React-Boostrap
import Form from 'react-bootstrap/Form'; import Form from 'react-bootstrap/Form';
import Button from 'react-bootstrap/Button'; import Button from 'react-bootstrap/Button';
@ -28,6 +23,13 @@ import './App.css'
import { FSContext } from ".//contexts/FSContext.js" import { FSContext } from ".//contexts/FSContext.js"
if (!getApps().length) {
initializeApp(firebaseConfig);
}
// declare variables // declare variables