aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/pages
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-09-09 20:10:16 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-09-09 20:10:16 +0300
commit188e806427ff6c9b302d994fc9c84a0300526688 (patch)
treede6b28b307efc181a26ff422895246b25d70de8a /frontend/src/pages
parentrefactor: upload run form, lots of random shit (diff)
downloadlphub-188e806427ff6c9b302d994fc9c84a0300526688.tar.gz
lphub-188e806427ff6c9b302d994fc9c84a0300526688.tar.bz2
lphub-188e806427ff6c9b302d994fc9c84a0300526688.zip
refactor: make names clickable throughout the site, fix user pages
Diffstat (limited to 'frontend/src/pages')
-rw-r--r--frontend/src/pages/Homepage.tsx2
-rw-r--r--frontend/src/pages/Maps.tsx1
-rw-r--r--frontend/src/pages/User.tsx2
3 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/pages/Homepage.tsx b/frontend/src/pages/Homepage.tsx
index d4f3095..8e5bb4b 100644
--- a/frontend/src/pages/Homepage.tsx
+++ b/frontend/src/pages/Homepage.tsx
@@ -10,7 +10,7 @@ const Homepage: React.FC = () => {
10 <h1><img src={PortalIcon} alt="lphub"/>Welcome to Least Portals Hub!</h1> 10 <h1><img src={PortalIcon} alt="lphub"/>Welcome to Least Portals Hub!</h1>
11 <p>At the moment, LPHUB is in beta state. This means that the site has only the core functionalities enabled for providing both collaborative information and competitive leaderboards.</p> 11 <p>At the moment, LPHUB is in beta state. This means that the site has only the core functionalities enabled for providing both collaborative information and competitive leaderboards.</p>
12 <p>The website should feel intuitive to navigate around. For any type of feedback, reach us at LPHUB Discord server.</p> 12 <p>The website should feel intuitive to navigate around. For any type of feedback, reach us at LPHUB Discord server.</p>
13 <p>By using LPHUB, you agree that you have read the 'Leaderboard Rules' and the 'About P2LP' pages.</p> 13 <p>By using LPHUB, you agree that you have read the 'Leaderboard Rules' and the 'About LPHUB' pages.</p>
14 </section> 14 </section>
15 </main> 15 </main>
16 ); 16 );
diff --git a/frontend/src/pages/Maps.tsx b/frontend/src/pages/Maps.tsx
index 5548650..62fc3cc 100644
--- a/frontend/src/pages/Maps.tsx
+++ b/frontend/src/pages/Maps.tsx
@@ -39,6 +39,7 @@ const Maps: React.FC<MapProps> = ({ profile, isModerator, onUploadRun }) => {
39 39
40 const _fetch_map_leaderboards = async () => { 40 const _fetch_map_leaderboards = async () => {
41 const mapLeaderboards = await API.get_map_leaderboard(mapID); 41 const mapLeaderboards = await API.get_map_leaderboard(mapID);
42 console.log(mapLeaderboards?.records[0]);
42 setMapLeaderboardData(mapLeaderboards); 43 setMapLeaderboardData(mapLeaderboards);
43 }; 44 };
44 45
diff --git a/frontend/src/pages/User.tsx b/frontend/src/pages/User.tsx
index 1f6d8d0..1605ada 100644
--- a/frontend/src/pages/User.tsx
+++ b/frontend/src/pages/User.tsx
@@ -79,7 +79,7 @@ const User: React.FC = () => {
79 79
80 React.useEffect(() => { 80 React.useEffect(() => {
81 _fetch_user(); 81 _fetch_user();
82 }, []); 82 }, [user]);
83 83
84 React.useEffect(() => { 84 React.useEffect(() => {
85 if (game !== "0") { 85 if (game !== "0") {