@campxdev/shared 1.11.57 → 1.11.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.11.57",
3
+ "version": "1.11.58",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -37,37 +37,6 @@ export default function LayoutWrapper({
37
37
  </StyledLeftNavContainer>
38
38
  )}
39
39
 
40
- {window.innerWidth < 1024 && (
41
- <>
42
- <IconButton
43
- color="inherit"
44
- aria-label="open drawer"
45
- onClick={handleDrawer}
46
- edge="start"
47
- sx={{ mr: 0.5 }}
48
- >
49
- <MenuIcon />
50
- </IconButton>
51
- {/* <Button
52
- onClick={() => {
53
- console.log('hi')
54
- }}
55
- // edge="start"
56
- // sx={{ mr: 0.5 }}
57
- >
58
- <MenuIcon />
59
- </Button> */}
60
- <StyledDrawer
61
- variant={'temporary'}
62
- anchor="left"
63
- open={open}
64
- onClose={handleDrawer}
65
- >
66
- <SideNav menuItems={menu as any[]} header={sideMenuHeader} />
67
- </StyledDrawer>
68
- </>
69
- )}
70
-
71
40
  <StyledMainContentContainer
72
41
  style={{
73
42
  width: permissions.isHomePageEnabled
@@ -82,6 +51,36 @@ export default function LayoutWrapper({
82
51
  : 'calc(100vh - 64px)',
83
52
  }}
84
53
  >
54
+ {window.innerWidth < 1024 && (
55
+ <>
56
+ <IconButton
57
+ color="inherit"
58
+ aria-label="open drawer"
59
+ onClick={handleDrawer}
60
+ edge="start"
61
+ sx={{ mr: 0.5 }}
62
+ >
63
+ <MenuIcon />
64
+ </IconButton>
65
+ {/* <Button
66
+ onClick={() => {
67
+ console.log('hi')
68
+ }}
69
+ // edge="start"
70
+ // sx={{ mr: 0.5 }}
71
+ >
72
+ <MenuIcon />
73
+ </Button> */}
74
+ <StyledDrawer
75
+ variant={'temporary'}
76
+ anchor="left"
77
+ open={open}
78
+ onClose={handleDrawer}
79
+ >
80
+ <SideNav menuItems={menu as any[]} header={sideMenuHeader} />
81
+ </StyledDrawer>
82
+ </>
83
+ )}
85
84
  <ErrorBoundary>{children}</ErrorBoundary>
86
85
  </StyledMainContentContainer>
87
86
  </ErrorBoundary>