Skip to content

Commit

Permalink
Merge pull request #33 from anaswaratrajan/auth-domain-fix
Browse files Browse the repository at this point in the history
Config to prod RM app with whitelisted domains
  • Loading branch information
anastr0 authored Jan 25, 2021
2 parents 2011036 + 72594ba commit b506d8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/components/Firebase.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
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 {
firebase.app(); // if already initialized, use that one
}
const auth = firebase.auth();

export { auth, firebase };
export { auth, firebase };
5 changes: 3 additions & 2 deletions src/components/Greetings.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div id="maingreeting" className="py-3 my-1 ">
<Row className="py-2">
Expand Down

1 comment on commit b506d8c

@vercel
Copy link

@vercel vercel bot commented on b506d8c Jan 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.