Mixonomer/src/js/Settings/SettingsRouter.js

30 lines
1.0 KiB
JavaScript
Raw Normal View History

import React, { Component } from "react";
2020-01-29 00:12:41 +00:00
import { BrowserRouter as Route, Link } from "react-router-dom";
import ChangePassword from "./ChangePassword.js";
import SpotifyLink from "./SpotifyLink.js";
import LastFM from "./LastFM.js";
class Settings extends Component {
render() {
return (
<div>
<ul className="navbar" style={{width: "100%"}}>
<li><Link to={`${this.props.match.url}/password`}>Password</Link></li>
<li><Link to={`${this.props.match.url}/spotify`}>Spotify</Link></li>
<li><Link to={`${this.props.match.url}/lastfm`}>Last.fm</Link></li>
</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} />
<Route path={`${this.props.match.url}/lastfm`} component={LastFM} />
</div>
);
}
}
export default Settings;