1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 01:22:48 +00:00

typescript conversion

This commit is contained in:
2017-08-02 19:50:00 -05:00
parent 43fadf9c6a
commit 84c2425c6d
13 changed files with 347 additions and 64 deletions

View File

@@ -3,7 +3,15 @@ import { Link } from 'react-router';
import './Navbar.scss';
export default class Navbar extends React.Component {
interface Props {
}
interface State {
}
export class Navbar extends React.Component<Props, State> {
render() {
return (
@@ -12,11 +20,8 @@ export default class Navbar extends React.Component {
<Link to="/" className="Navbar__item" onlyActiveOnIndex activeClassName="Navbar__item--active">Home</Link>
<Link to="/soundboard" className="Navbar__item" activeClassName="Navbar__item--active">Soundboard</Link>
<Link to="/downloader" className="Navbar__item" activeClassName="Navbar__item--active">Youtube Downloader</Link>
<Link to="/pubg" className="Navbar__item" activeClassName="Navbar__item--active">Pubg</Link>
</div>
);
}
}
Navbar.propTypes = {
children: React.PropTypes.node,
};