-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
40 lines (33 loc) · 1.25 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
import React, { Fragment } from "react";
/// Components
import Markup from "./jsx";
/// Style
import "./vendor/bootstrap-select/dist/css/bootstrap-select.min.css";
import "./css/style.css";
import { withResizeDetector } from "react-resize-detector";
const App = ({ width }) => {
const body = document.querySelector("body");
body.setAttribute("data-typography", "poppins");
body.setAttribute("data-theme-version", "light");
body.setAttribute("data-layout", "vertical");
body.setAttribute("data-nav-headerbg", "color_1");
body.setAttribute("data-headerbg", "color_1");
body.setAttribute("data-sidebar-style", "full");
body.setAttribute("data-sibebarbg", "color_1");
body.setAttribute("data-primary", "color_1");
body.setAttribute("data-sidebar-position", "fixed");
body.setAttribute("data-header-position", "fixed");
body.setAttribute("data-container", "wide");
body.setAttribute("direction", "ltr");
width > 767 && width < 1200
? body.setAttribute("data-sidebar-style", "mini")
: width < 768
? body.setAttribute("data-sidebar-style", "overlay")
: body.setAttribute("data-sidebar-style", "full");
return (
<Fragment>
<Markup />
</Fragment>
);
};
export default withResizeDetector(App);