hyperspace-desktop-client-w.../src/App.tsx

35 lines
1020 B
TypeScript
Raw Normal View History

2019-03-25 20:53:33 +01:00
import React, { Component } from 'react';
2019-03-26 02:37:02 +01:00
import {MuiThemeProvider, CssBaseline, withStyles, Typography } from '@material-ui/core';
2019-03-25 22:01:39 +01:00
import { setHyperspaceTheme } from './utilities/themes';
import { defaultTheme } from './types/HyperspaceTheme';
2019-03-26 02:37:02 +01:00
import AppLayout from './components/AppLayout';
import {styles} from './App.styles';
2019-03-27 01:35:30 +01:00
import {Route} from 'react-router-dom';
2019-03-25 20:53:33 +01:00
2019-03-25 22:01:39 +01:00
const theme = setHyperspaceTheme(defaultTheme);
class App extends Component<any, any> {
2019-03-26 02:37:02 +01:00
2019-03-25 20:53:33 +01:00
render() {
2019-03-25 22:01:39 +01:00
const { classes } = this.props;
2019-03-25 20:53:33 +01:00
return (
2019-03-25 22:01:39 +01:00
<MuiThemeProvider theme={theme}>
2019-03-26 02:37:02 +01:00
<CssBaseline/>
<AppLayout/>
2019-03-27 01:35:30 +01:00
<Route exact path="/"/>
<Route path="/home"/>
<Route path="/local"/>
2019-03-27 17:42:04 +01:00
<Route path="/public"/>
<Route path="/messages"/>
<Route path="/notifications"/>
<Route path="/profile"/>
<Route path="/conversation"/>
<Route path="/settings"/>
<Route path="/about"/>
2019-03-25 22:01:39 +01:00
</MuiThemeProvider>
2019-03-25 20:53:33 +01:00
);
}
}
2019-03-25 22:01:39 +01:00
export default withStyles(styles)(App);