2019-07-30 16:25:01 +01:00
|
|
|
import React, { Component } from "react";
|
|
|
|
import { BrowserRouter as Router, Route, Link, Switch, Redirect} from "react-router-dom";
|
|
|
|
|
2019-07-31 12:24:10 +01:00
|
|
|
import ChangePassword from "./ChangePassword.js";
|
|
|
|
import SpotifyLink from "./SpotifyLink.js";
|
2019-10-19 17:57:56 +01:00
|
|
|
import LastFM from "./LastFM.js";
|
2019-07-30 16:25:01 +01:00
|
|
|
|
|
|
|
class Settings extends Component {
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<ul className="navbar" style={{width: "100%"}}>
|
|
|
|
<li><Link to={`${this.props.match.url}/password`}>password</Link></li>
|
2019-07-31 12:24:10 +01:00
|
|
|
<li><Link to={`${this.props.match.url}/spotify`}>spotify</Link></li>
|
2019-10-19 17:57:56 +01:00
|
|
|
<li><Link to={`${this.props.match.url}/lastfm`}>last.fm</Link></li>
|
2019-07-30 16:25:01 +01:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<Route path={`${this.props.match.url}/password`} component={ChangePassword} />
|
2019-07-31 20:31:01 +01:00
|
|
|
<Route path={`${this.props.match.url}/spotify`} component={SpotifyLink} />
|
2019-10-19 17:57:56 +01:00
|
|
|
<Route path={`${this.props.match.url}/lastfm`} component={LastFM} />
|
2019-07-30 16:25:01 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default Settings;
|