diff --git a/.env b/.env index 46256a7..a4a0e8c 100644 --- a/.env +++ b/.env @@ -1 +1,8 @@ -VITE_REACT_APP_gmap=AIzaSyDCs25ivx55QjPoixKSzGreSw-feBeJVms \ No newline at end of file +VITE_REACT_APP_gmap=AIzaSyDCs25ivx55QjPoixKSzGreSw-feBeJVms +VITE_REACT_APP_firebase_api=AIzaSyDENRl9aTGHqlTZ5C_EYzwCFUeDPhKXDcI +VITE_REACT_APP_firebase_authDomain= "food-saviour-d4edb.firebaseapp.com" +VITE_REACT_APP_firebase_projectId= "food-saviour-d4edb" +VITE_REACT_APP_firebase_storageBucket= "food-saviour-d4edb.appspot.com" +VITE_REACT_APP_firebase_messagingSenderId= "143331820755" +VITE_REACT_APP_firebase_appId= "1:143331820755:web:b4952c3b0f6e1130278026" +VITE_REACT_APP_firebase_measurementId= "G-N4KQBXLH37" \ No newline at end of file diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx index fa74bda..66ab7bd 100644 --- a/src/components/NavBar.tsx +++ b/src/components/NavBar.tsx @@ -79,7 +79,7 @@ export function NavBar() { onClick={updateLocation} style={{ cursor: "pointer" }} > - Update Location + Update Current Location ) : ( diff --git a/src/config/firebase.tsx b/src/config/firebase.tsx index b4b0dc3..287f593 100644 --- a/src/config/firebase.tsx +++ b/src/config/firebase.tsx @@ -5,13 +5,13 @@ import { getStorage } from "firebase/storage"; // import { getAnalytics } from "firebase/analytics"; const firebaseConfig = { - apiKey: "AIzaSyDENRl9aTGHqlTZ5C_EYzwCFUeDPhKXDcI", - authDomain: "food-saviour-d4edb.firebaseapp.com", - projectId: "food-saviour-d4edb", - storageBucket: "food-saviour-d4edb.appspot.com", - messagingSenderId: "143331820755", - appId: "1:143331820755:web:b4952c3b0f6e1130278026", - measurementId: "G-N4KQBXLH37", + apiKey: import.meta.env.VITE_REACT_APP_firebase_api, + authDomain: import.meta.env.VITE_REACT_APP_firebase_authDomain, + projectId: import.meta.env.VITE_REACT_APP_firebase_projectId, + storageBucket: import.meta.env.VITE_REACT_APP_firebase_storageBucket, + messagingSenderId: import.meta.env.VITE_REACT_APP_firebase_messagingSenderId, + appId: import.meta.env.VITE_REACT_APP_firebase_appId, + measurementId: import.meta.env.VITE_REACT_APP_firebase_measurementId, }; const app = initializeApp(firebaseConfig);