user auth bug 2 fixed
This commit is contained in:
12
src/App.js
12
src/App.js
@@ -36,11 +36,11 @@ function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<header className="App-header">
|
||||
|
||||
{user ? <ChatRoom/> : <SignIn/>}
|
||||
</header>
|
||||
|
||||
<section>
|
||||
{user ? <ChatRoom/> : <SignIn/>}
|
||||
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
@@ -73,6 +73,7 @@ function ChatRoom(){
|
||||
|
||||
const [messages] = useCollectionData(query, {idField: 'id'});
|
||||
|
||||
/* NOT YET IMPLEMENTED
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
@@ -80,6 +81,13 @@ function ChatRoom(){
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
*/
|
||||
|
||||
return (
|
||||
<div className="loggedInText">
|
||||
You are logged in
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function ChatMessage(props){
|
||||
|
||||
Reference in New Issue
Block a user