849c0a5fa6
fixed password updating changed password statuses from text to toast added maths menu item
30 lines
1.0 KiB
JavaScript
30 lines
1.0 KiB
JavaScript
import React, { Component } from "react";
|
|
import { BrowserRouter as Router, Route, Link, Switch, Redirect} 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} />
|
|
<Route path={`${this.props.match.url}/spotify`} component={SpotifyLink} />
|
|
<Route path={`${this.props.match.url}/lastfm`} component={LastFM} />
|
|
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export default Settings; |