-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Seperate firebase init to seperate file & change name of TrackingMap …
…props
- Loading branch information
frederik-oestergaard
committed
Feb 9, 2021
1 parent
ccc6dfd
commit 2557522
Showing
6 changed files
with
767 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import firebase from 'firebase/app'; | ||
import 'firebase/firestore'; | ||
|
||
export const initializeFirebase = () => { | ||
if (!firebase.apps.length) { | ||
// Initialize Cloud Firestore through Firebase | ||
firebase.initializeApp({ | ||
apiKey: 'AIzaSyCjWvauKhB-7i36JvK-roJ3WckHtoH9SGs', | ||
authDomain: 'sg-fotex-hd-dev.firebaseapp.com', | ||
projectId: 'sg-fotex-hd-dev', | ||
storageBucket: 'sg-fotex-hd-dev.appspot.com', | ||
messagingSenderId: '166090563833', | ||
appId: '1:166090563833:web:1a9e9edba78df8ac258228', | ||
}); | ||
} else { | ||
firebase.app(); // if already initialized, use that one | ||
} | ||
}; |
Oops, something went wrong.