@campxdev/shared 1.11.58 → 1.11.59

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.58",
3
+ "version": "1.11.59",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -27,11 +27,9 @@ export default function LayoutWrapper({
27
27
  console.log('hi')
28
28
  setOpen(!open)
29
29
  }
30
-
31
- console.log(window.innerWidth)
32
30
  return (
33
31
  <ErrorBoundary>
34
- {window.innerWidth > 1024 && !permissions.isHomePageEnabled && (
32
+ {!permissions.isHomePageEnabled && (
35
33
  <StyledLeftNavContainer>
36
34
  <SideNav menuItems={menu as any[]} header={sideMenuHeader} />
37
35
  </StyledLeftNavContainer>
@@ -51,18 +49,22 @@ export default function LayoutWrapper({
51
49
  : 'calc(100vh - 64px)',
52
50
  }}
53
51
  >
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
52
+ <>
53
+ <IconButton
54
+ color="inherit"
55
+ aria-label="open drawer"
56
+ onClick={handleDrawer}
57
+ edge="start"
58
+ sx={{
59
+ mr: 0.5,
60
+ ['@media (min-width: 760px)']: {
61
+ display: 'none',
62
+ },
63
+ }}
64
+ >
65
+ <MenuIcon />
66
+ </IconButton>
67
+ {/* <Button
66
68
  onClick={() => {
67
69
  console.log('hi')
68
70
  }}
@@ -71,16 +73,16 @@ export default function LayoutWrapper({
71
73
  >
72
74
  <MenuIcon />
73
75
  </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
- )}
76
+ <StyledDrawer
77
+ variant={'temporary'}
78
+ anchor="left"
79
+ open={open}
80
+ onClose={handleDrawer}
81
+ >
82
+ <SideNav menuItems={menu as any[]} header={sideMenuHeader} />
83
+ </StyledDrawer>
84
+ </>
85
+
84
86
  <ErrorBoundary>{children}</ErrorBoundary>
85
87
  </StyledMainContentContainer>
86
88
  </ErrorBoundary>
@@ -48,6 +48,10 @@ export const StyledLeftNavContainer = muiStyled('aside')(({ theme }) => ({
48
48
  },
49
49
 
50
50
  zIndex: 100,
51
+
52
+ ['@media (max-width: 760px)']: {
53
+ display: 'none',
54
+ },
51
55
  }))
52
56
 
53
57
  export const StyledMainContentContainer = muiStyled('main')(() => ({