Skip to content

Commit

Permalink
refact: add navigate to home, change songlist page into album
Browse files Browse the repository at this point in the history
  • Loading branch information
koremp committed Aug 9, 2024
1 parent 4551c11 commit 610e91e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import {
Routes,
Route,
Navigate,
} from 'react-router-dom';

import HomePage from './page/HomePage';
Expand All @@ -21,16 +22,17 @@ export default function App() {
return (
<Root>
<Routes>
<Route path="/home" element={<HomePage/>} />
<Route path="/about" element={<AboutPage/>} />
<Route exact path="/member" element={<MemberListPage/>} />
<Route path="/member/:name" element={<MemberDetailPage/>} />
<Route path="/cheer-song" element={<CheerSongListPage/>} />
<Route exact path="/song" element={<SongListPage/>} />
<Route path="/song/:id" element={<SongPage/>} />
<Route path="/album" element={<AlbumListPage/>} />
<Route path='/home' element={<HomePage/>} />
<Route path='/about' element={<AboutPage/>} />
<Route exact path='/member' element={<MemberListPage/>} />
<Route path='/member/:name' element={<MemberDetailPage/>} />
<Route path='/cheer-song' element={<CheerSongListPage/>} />
<Route path='/album' element={<AlbumListPage/>} />
<Route exact path='/album/:songList/' element={<SongListPage/>}/>
<Route exact path='/album/:songList/:song' element={<SongPage/>} />
<Route path='*' element={<Navigate to='/home' replace/>} />
<Route element={<NotFoundPage/>} />
</Routes>
</Routes>
</Root>
);
}

0 comments on commit 610e91e

Please sign in to comment.