Agregada vista de artista
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user