user auth bug 2 fixed

This commit is contained in:
Digi
2024-12-03 20:42:44 +01:00
parent 32eb01b9f4
commit 74655b74f9
4 changed files with 88 additions and 6 deletions

View File

@@ -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){