aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--frontend/src/components/Loading.tsx11
-rw-r--r--frontend/src/pages/Maps.tsx5
2 files changed, 2 insertions, 14 deletions
diff --git a/frontend/src/components/Loading.tsx b/frontend/src/components/Loading.tsx
deleted file mode 100644
index b7973f1..0000000
--- a/frontend/src/components/Loading.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
1import React from 'react';
2
3const Loading: React.FC = () => {
4
5 return (
6 <section id='section6' className='summary2' />
7 );
8
9};
10
11export default Loading;
diff --git a/frontend/src/pages/Maps.tsx b/frontend/src/pages/Maps.tsx
index 9862cbb..915b5f8 100644
--- a/frontend/src/pages/Maps.tsx
+++ b/frontend/src/pages/Maps.tsx
@@ -9,7 +9,6 @@ import ModMenu from '../components/ModMenu';
9import { MapDiscussions, MapLeaderboard, MapSummary } from '../types/Map'; 9import { MapDiscussions, MapLeaderboard, MapSummary } from '../types/Map';
10import { API } from '../api/Api'; 10import { API } from '../api/Api';
11import "../css/Maps.css"; 11import "../css/Maps.css";
12import Loading from '../components/Loading';
13 12
14interface MapProps { 13interface MapProps {
15 token?: string; 14 token?: string;
@@ -67,7 +66,7 @@ const Maps: React.FC<MapProps> = ({ token, isModerator }) => {
67 <button className='nav-button'><img src={ChatIcon} alt="" /><span>Discussions</span></button> 66 <button className='nav-button'><img src={ChatIcon} alt="" /><span>Discussions</span></button>
68 </section> 67 </section>
69 68
70 <Loading /> 69 <section id='section6' className='summary2' />
71 </main> 70 </main>
72 ); 71 );
73 } 72 }
@@ -83,7 +82,7 @@ const Maps: React.FC<MapProps> = ({ token, isModerator }) => {
83 <section id='section1' className='summary1'> 82 <section id='section1' className='summary1'>
84 <div> 83 <div>
85 <Link to="/games"><button className='nav-button' style={{ borderRadius: "20px 0px 0px 20px" }}><i className='triangle'></i><span>Games List</span></button></Link> 84 <Link to="/games"><button className='nav-button' style={{ borderRadius: "20px 0px 0px 20px" }}><i className='triangle'></i><span>Games List</span></button></Link>
86 <Link to={`/games/${mapSummaryData.map.is_coop ? "1" : "2"}?chapter=${mapSummaryData.map.chapter_name.split(" ")[1]}`}><button className='nav-button' style={{ borderRadius: "0px 20px 20px 0px", marginLeft: "2px" }}><i className='triangle'></i><span>{mapSummaryData.map.chapter_name}</span></button></Link> 85 <Link to={`/games/${mapSummaryData.map.is_coop ? "2" : "1"}?chapter=${mapSummaryData.map.chapter_name.split(" ")[1]}`}><button className='nav-button' style={{ borderRadius: "0px 20px 20px 0px", marginLeft: "2px" }}><i className='triangle'></i><span>{mapSummaryData.map.chapter_name}</span></button></Link>
87 <br /><span><b>{mapSummaryData.map.map_name}</b></span> 86 <br /><span><b>{mapSummaryData.map.map_name}</b></span>
88 </div> 87 </div>
89 </section> 88 </section>