From 2796172d3048910f28bcfef05c4c714b36fe0ec5 Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Sun, 10 Mar 2024 20:04:10 +0000 Subject: [PATCH] Fix Maps for Chatroom --- frontend-next/src/app/app/page.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/frontend-next/src/app/app/page.js b/frontend-next/src/app/app/page.js index 474e434..e1cfea1 100644 --- a/frontend-next/src/app/app/page.js +++ b/frontend-next/src/app/app/page.js @@ -81,17 +81,17 @@ return ( // Map module for main page and chat room sidebar // TODO: MAKE NOT MOVABLE -function Geo({loc, zoom, movable}) { +function Geo({loc, zoom, movable, marker}) { if (loc) { return ( - - + + {marker && } {zoom && } ) } else { return ( - + ) } @@ -99,7 +99,6 @@ function Geo({loc, zoom, movable}) { // Module for Welcome Message on main tab landing page function WelcomeMessage() { - //TODO: REALLY GROSS WAY TO GET COOKIES, NEED NEW WAY TO STORE USER DATA WITHOUT API CALLS. THIS PAGE HAS TO BE CLIENT SIDE DUE TO MAPS / GEOLOCATION const [data, setData] = useState(null) const [isLoading, setLoading] = useState(true) useEffect(() => { @@ -133,7 +132,7 @@ function MainTabHome({loc}) { <>
- +
) @@ -474,8 +473,8 @@ function Home() {
-
- +
+
{chatRoomObj.name}