Vista basica de discos
This commit is contained in:
@@ -10,6 +10,7 @@ import {Nav} from "./components/Nav";
|
||||
|
||||
import {BrowserRouter, Switch, Route} from "react-router-dom";
|
||||
import {ArtistView} from "./components/Artist";
|
||||
import {DiscView} from "./components/Disc";
|
||||
|
||||
const Main = (props) => {
|
||||
const navigate = (query) => props.history.push(`/search?query=${query}`);
|
||||
@@ -38,6 +39,7 @@ const App = () => (
|
||||
<Switch>
|
||||
<Route path='/search/:who?' component={Search}/>
|
||||
<Route path='/artist/:mbid?' component={ArtistView}/>
|
||||
<Route path='/disc/:mbid?' component={DiscView}/>
|
||||
<Route exact path='/' component={Main}/>
|
||||
<Route path='*' component={NoRoute}/>
|
||||
</Switch>
|
||||
|
||||
Reference in New Issue
Block a user