Move import's to top as part of proper declaring
This commit is contained in:
parent
098ee40a2c
commit
62d3224651
12
src/App.js
12
src/App.js
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue