kandimat/redaktions-app/src/App.tsx

40 lines
897 B
TypeScript
Raw Normal View History

import React from 'react';
import './App.css';
import { createStyles, WithStyles } from '@material-ui/core';
import { withStyles } from '@material-ui/styles';
import { CustomAppBar } from 'components/CustomAppBar/CustomAppBar';
import { Overview } from 'components/Overview/Overview';
2019-09-17 23:48:44 +02:00
export const dataApi = '/api'
2019-09-01 01:07:36 +02:00
const styles = createStyles({
root: {
flexGrow: 1,
},
content: {
flexGrow: 1,
height: '100vh',
2019-08-31 23:02:18 +02:00
maxWidth: 1000,
marginLeft: 'auto',
marginRight: 'auto',
},
})
interface AppProps extends WithStyles<typeof styles> { }
class ProtoApp extends React.PureComponent<AppProps> {
public render() {
return (
<div className={this.props.classes.root}>
<CustomAppBar />
<main className={this.props.classes.content}>
<Overview />
</main>
</div>
);
}
}
export const App = withStyles(styles)(ProtoApp);