-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
50 lines (48 loc) · 1.23 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import React from "react";
import "./App.css";
import theme from "../src/utils/theme";
import { makeStyles } from "@material-ui/core";
import CollectorDashboard from "../src/views/CollectorDashboard";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
//import { ROLL_NUMBER } from "../src/utils/constants";
//import { LandingPage } from "./views";
const useStyles = makeStyles((theme) => ({
"@global": {
"*::-webkit-scrollbar": {
width: "0.4em",
height: "0.4em",
},
"*::-webkit-scrollbar-track": {
"-webkit-box-shadow": "inset 0 0 6px rgba(0,0,0,0.00)",
},
"*::-webkit-scrollbar-thumb": {
backgroundColor: "#6D7183",
outline: "1px solid slategrey",
},
},
mainBackground: {
background: theme.palette.primary.main,
height: "100vh",
width: "100vw",
overflow: "hidden",
},
root: {
flexGrow: 1,
},
paper: {
height: 140,
width: 100,
},
}));
const App = () => {
console.log("theme", theme);
const classes = useStyles();
return (
<div className={classes.mainBackground}>
<Router basename={`/${ROLL_NUMBER}`}>
<Route exact path="/" component={CollectorDashboard} />
</Router>
</div>
);
};
export default App;