diff --git a/src/components/Firebase.tsx b/src/components/Firebase.tsx index 5547373..df4a2b2 100644 --- a/src/components/Firebase.tsx +++ b/src/components/Firebase.tsx @@ -1,10 +1,12 @@ import firebase from "firebase/app"; import "firebase/auth"; +// Production - RocketMeet const config = { - apiKey: "AIzaSyD5KqdURtfBQRrKdtUziFJZVRbeBKLqBCw", - authDomain: "rocketmeet-15a48.firebaseapp.com", + apiKey: "AIzaSyCmjdHH4Q3B6j1xzKuD5jPdIC2TyMOUln8", + authDomain: "rocket-meet.firebaseapp.com", }; + if (!firebase.apps.length) { firebase.initializeApp(config); } else { @@ -12,4 +14,4 @@ if (!firebase.apps.length) { } const auth = firebase.auth(); -export { auth, firebase }; +export { auth, firebase }; \ No newline at end of file diff --git a/src/components/Greetings.tsx b/src/components/Greetings.tsx index 7645d8f..db3c588 100644 --- a/src/components/Greetings.tsx +++ b/src/components/Greetings.tsx @@ -1,10 +1,11 @@ import React from "react"; import { useSelector } from "react-redux"; import { Button, Row, Col, Card } from "react-bootstrap"; +import { RootState } from "src/store/store"; const Greetings = (): JSX.Element => { - const displayName = useSelector((state) => state.authReducer.displayName); - const displayMail = useSelector((state) => state.authReducer.username); + const displayName = useSelector((state: RootState) => state.authReducer.displayName); + const displayMail = useSelector((state: RootState) => state.authReducer.username); return (