-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathApp.jsx
More file actions
25 lines (19 loc) · 924 Bytes
/
App.jsx
File metadata and controls
25 lines (19 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { Route, Routes } from 'react-router-dom'
import './App.css'
import NormalWithContext from './components/NormalWithContext'
import OtherViewsMain from './otherViews/OtherViewsMain'
function App() {
return (
<>
<Routes>
{/* <Route path='/playlists/new/*' element={<OtherViewsMain requestedPath='/playlists/new' />}/> */}
<Route path='/songs/new/*' element={<OtherViewsMain requestedPath='/songs/new' />}/>
<Route path='/playlists/:id/add-song' element={<OtherViewsMain requestedPath='/playlists/:id/add-song'/>}/>
<Route path='/playlists/*' element={<OtherViewsMain requestedPath='/playlists' />}/>
<Route path='/songs/*' element={<OtherViewsMain requestedPath='/songs' />}/>
<Route path='*' element={<NormalWithContext/>} />
</Routes>
</>
)
}
export default App