1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +00:00

UI Overhaul

This commit is contained in:
2018-08-19 18:17:40 -05:00
parent 5fedcd4b40
commit e593472c84
58 changed files with 633 additions and 685 deletions

View File

@@ -1,31 +1,27 @@
import 'babel-polyfill';
import { Provider } from 'mobx-react';
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import { Wrapper } from './Wrapper';
import { Home } from './pages/Home/Home';
import { Soundboard } from './pages/Soundboard/Soundboard';
import { NotFound } from './pages/NotFound/NotFound';
import { Downloader } from './pages/Downloader/Downloader';
import { Clips } from './pages/Clips';
import { Oauth } from './pages/oauth/oauth';
import { Stats } from './pages/stats/stats';
import 'babel-polyfill';
import { Clips, Downloader, NotFound, Oauth, Soundboard, Stats } from './pages';
import { rootStoreInstance } from './stores';
import { Wrapper } from './wrapper';
const App: any = (): any => {
return (
<BrowserRouter>
<Wrapper>
<Switch>
<Route exact path="/" component={Home} />
<Route path="/soundboard" component={Soundboard} />
<Route path="/downloader" component={Downloader} />
<Route path="/clips" component={Clips} />
<Route path="/oauth" component={Oauth} />
<Route path="/stats" component={Stats} />
<Route component={NotFound} />
</Switch>
</Wrapper>
<Provider {...rootStoreInstance}>
<Wrapper>
<Switch>
<Route exact path="/" component={Soundboard} />
<Route path="/downloader" component={Downloader} />
<Route path="/clips" component={Clips} />
<Route path="/oauth" component={Oauth} />
<Route path="/stats" component={Stats} />
<Route component={NotFound} />
</Switch>
</Wrapper>
</Provider>
</BrowserRouter>
);
};