Agregada vista de artista

This commit is contained in:
Daniel Cortes
2020-06-06 05:52:15 -04:00
parent 084845f347
commit 0af23a9a3a
7 changed files with 302 additions and 62 deletions

View File

@@ -9,6 +9,7 @@ import './styles/main.scss';
import {Nav} from "./components/Nav";
import {BrowserRouter, Switch, Route} from "react-router-dom";
import {ArtistView} from "./components/Artist";
const Main = (props) => {
const navigate = (query) => props.history.push(`/search?query=${query}`);
@@ -36,6 +37,7 @@ const App = () => (
<Nav/>
<Switch>
<Route path='/search/:who?' component={Search}/>
<Route path='/artist/:mbid?' component={ArtistView}/>
<Route exact path='/' component={Main}/>
<Route path='*' component={NoRoute}/>
</Switch>