2019-07-29 11:44:10 +01:00
|
|
|
import React, { Component } from "react";
|
|
|
|
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
|
|
|
|
const axios = require('axios');
|
|
|
|
|
2019-07-30 16:25:01 +01:00
|
|
|
import PlaylistsView from "./PlaylistsView.js"
|
2019-07-29 11:44:10 +01:00
|
|
|
|
2019-07-30 16:25:01 +01:00
|
|
|
class Playlists extends Component {
|
|
|
|
render(){
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<ul className="navbar" style={{width: "100%"}}>
|
|
|
|
<li><Link to={`${this.props.match.url}/add`}>add</Link></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<Route path={`${this.props.match.url}/`} component={PlaylistsView} />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
);
|
2019-07-29 11:44:10 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Playlists;
|