diff options
Diffstat (limited to '')
| -rw-r--r-- | frontend/src/pages/Maps.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
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'; | |||
| 9 | import { MapDiscussions, MapLeaderboard, MapSummary } from '../types/Map'; | 9 | import { MapDiscussions, MapLeaderboard, MapSummary } from '../types/Map'; |
| 10 | import { API } from '../api/Api'; | 10 | import { API } from '../api/Api'; |
| 11 | import "../css/Maps.css"; | 11 | import "../css/Maps.css"; |
| 12 | import Loading from '../components/Loading'; | ||
| 13 | 12 | ||
| 14 | interface MapProps { | 13 | interface 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> |