mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-11 09:32:51 +00:00
client - add services
This commit is contained in:
33
client/app/routes.tsx
Normal file
33
client/app/routes.tsx
Normal file
@@ -0,0 +1,33 @@
|
||||
import React from 'react';
|
||||
import { BrowserRouter, Route, Switch } from 'react-router-dom';
|
||||
import { Footer, Header } from './components';
|
||||
import { Forum, Home, NotFound, Oauth, Realms, UserAccount } from './pages';
|
||||
|
||||
// styling
|
||||
import './scss/index.scss';
|
||||
|
||||
interface Props {}
|
||||
|
||||
interface State {}
|
||||
|
||||
export class Routes extends React.Component<Props, State> {
|
||||
|
||||
public render() {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<div>
|
||||
<Header />
|
||||
<Switch>
|
||||
<Route exact path="/" component={Home} />
|
||||
<Route exact path="/realms" component={Realms} />
|
||||
<Route exact path="/f/:id" component={Forum} />
|
||||
<Route exact path="/oauth" component={Oauth} />
|
||||
<Route exact path="/user-account" component={UserAccount} />
|
||||
<Route component={NotFound} />
|
||||
</Switch>
|
||||
<Footer />
|
||||
</div>
|
||||
</BrowserRouter>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user