From 284a41e7364e0be61d81c20e588b38cd0133f8c4 Mon Sep 17 00:00:00 2001 From: Jan Silva Date: Tue, 6 Dec 2022 20:21:33 +0100 Subject: [PATCH] Fix avatar pic url added configs for firebase emulator --- src/components/User/Profile/Profile.jsx | 2 +- src/index.js | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/User/Profile/Profile.jsx b/src/components/User/Profile/Profile.jsx index 28ccc96..6cb694d 100644 --- a/src/components/User/Profile/Profile.jsx +++ b/src/components/User/Profile/Profile.jsx @@ -7,7 +7,7 @@ import Avatar from 'components/User/Avatar/Avatar.jsx'; const Profile = (props, {user,logoutAction,addFavoritesAction}) => { return (
- +
Passionate about horror movies, born in Brazil. diff --git a/src/index.js b/src/index.js index 2f35c64..4861df2 100644 --- a/src/index.js +++ b/src/index.js @@ -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'));