diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-30 12:55:03 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-30 12:55:03 +0300 |
| commit | 1953305b197e33ce905e83076acff84fb01ee23b (patch) | |
| tree | 69418bcbfa466747786755a82e82dbf57a991ea7 /frontend | |
| parent | frontend: h2 to h3 (diff) | |
| download | lphub-1953305b197e33ce905e83076acff84fb01ee23b.tar.gz lphub-1953305b197e33ce905e83076acff84fb01ee23b.tar.bz2 lphub-1953305b197e33ce905e83076acff84fb01ee23b.zip | |
frontend: fix return to game button
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/src/components/Loading.tsx | 11 | ||||
| -rw-r--r-- | frontend/src/pages/Maps.tsx | 5 |
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 @@ | |||
| 1 | import React from 'react'; | ||
| 2 | |||
| 3 | const Loading: React.FC = () => { | ||
| 4 | |||
| 5 | return ( | ||
| 6 | <section id='section6' className='summary2' /> | ||
| 7 | ); | ||
| 8 | |||
| 9 | }; | ||
| 10 | |||
| 11 | export 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'; | |||
| 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> |