diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-30 11:58:15 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-30 11:58:26 +0300 |
| commit | a62a768950cc74960af60b554669a67f91344c67 (patch) | |
| tree | df77a8616d96c3fe6515d5587f26ce79516c53dd | |
| parent | frontend: maplist chapter param fix (diff) | |
| download | lphub-a62a768950cc74960af60b554669a67f91344c67.tar.gz lphub-a62a768950cc74960af60b554669a67f91344c67.tar.bz2 lphub-a62a768950cc74960af60b554669a67f91344c67.zip | |
frontend: revert map index
| -rw-r--r-- | frontend/src/components/Summary.tsx | 2 | ||||
| -rw-r--r-- | frontend/src/pages/Maps.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/Summary.tsx b/frontend/src/components/Summary.tsx index aa351da..23da82c 100644 --- a/frontend/src/components/Summary.tsx +++ b/frontend/src/components/Summary.tsx | |||
| @@ -57,7 +57,7 @@ const Summary: React.FC<SummaryProps> = ({ selectedRun, setSelectedRun, data }) | |||
| 57 | 57 | ||
| 58 | React.useEffect(() => { | 58 | React.useEffect(() => { |
| 59 | _select_run(0, selectedCategory); | 59 | _select_run(0, selectedCategory); |
| 60 | }, [selectedCategory]); | 60 | }, []); |
| 61 | 61 | ||
| 62 | return ( | 62 | return ( |
| 63 | <> | 63 | <> |
diff --git a/frontend/src/pages/Maps.tsx b/frontend/src/pages/Maps.tsx index bc939cf..9862cbb 100644 --- a/frontend/src/pages/Maps.tsx +++ b/frontend/src/pages/Maps.tsx | |||
| @@ -83,7 +83,7 @@ const Maps: React.FC<MapProps> = ({ token, isModerator }) => { | |||
| 83 | <section id='section1' className='summary1'> | 83 | <section id='section1' className='summary1'> |
| 84 | <div> | 84 | <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> | 85 | <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> | 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> |
| 87 | <br /><span><b>{mapSummaryData.map.map_name}</b></span> | 87 | <br /><span><b>{mapSummaryData.map.map_name}</b></span> |
| 88 | </div> | 88 | </div> |
| 89 | </section> | 89 | </section> |