From 62d3224651b94a018d1a2a54ab87a093d574ee3f Mon Sep 17 00:00:00 2001 From: Rei Date: Fri, 29 Dec 2023 09:00:07 +0000 Subject: [PATCH] Move import's to top as part of proper declaring --- src/App.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/App.js b/src/App.js index 89def29..8300c12 100644 --- a/src/App.js +++ b/src/App.js @@ -12,11 +12,6 @@ import { addDoc } from "firebase/firestore"; -if (!getApps().length) { - initializeApp(firebaseConfig); - } - - // Import required compenets from Bootstrap and React-Boostrap import Form from 'react-bootstrap/Form'; import Button from 'react-bootstrap/Button'; @@ -28,6 +23,13 @@ import './App.css' import { FSContext } from ".//contexts/FSContext.js" +if (!getApps().length) { + initializeApp(firebaseConfig); + } + + + + // declare variables