Skip to content

Commit

Permalink
Fix avatar pic url
Browse files Browse the repository at this point in the history
added configs for firebase emulator
  • Loading branch information
janjitsu committed Dec 6, 2022
1 parent 1e3922d commit 284a41e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/User/Profile/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Avatar from 'components/User/Avatar/Avatar.jsx';
const Profile = (props, {user,logoutAction,addFavoritesAction}) => {
return (
<div className="profile">
<Avatar user={props.user}/>
<Avatar user={props.user} text={props.user.displayName}/>
<div className="side-box">
<div className="description">
Passionate about horror movies, born in Brazil.
Expand Down
13 changes: 12 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,22 @@ import AppRoutes from './routes/AppRoutes.js';
/** firebase */
import credentials from "./credentials";
import firebase from "firebase/compat/app";
import "firebase/compat/functions";
import "firebase/compat/firestore";
/** provider */
import { SessionProvider } from "providers/Session";

/** start */
firebase.initializeApp(credentials);
const app = firebase.initializeApp(credentials);
/*
if (window.location.hostname === "localhost") {
app.auth().useEmulator("http://localhost:9099");
app.firestore().settings({
host: "localhost:9098",
ssl: false,
});
}
*/


const root = ReactDOM.createRoot(document.getElementById('root'));
Expand Down

0 comments on commit 284a41e

Please sign in to comment.