File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ function UnauthorizedRoutes() {
74
74
function AuthorizedRoutes ( ) {
75
75
const location = useLocation ( ) ;
76
76
const height = use100vh ( ) ;
77
- const isMobile = useMediaQuery ( {
77
+ const isSmallScreen = useMediaQuery ( {
78
78
query : "(max-width: 1023px)" ,
79
79
} ) ;
80
80
@@ -111,16 +111,17 @@ function AuthorizedRoutes() {
111
111
} ,
112
112
} ) ;
113
113
114
- // Testing overflow should be hidden
115
114
return (
116
115
< div className = { classes . AppWrapper } style = { { height, overflow : "hidden" } } >
117
- < Sidebar >
118
- < Navigation />
119
- </ Sidebar >
116
+ { ! isSmallScreen && (
117
+ < Sidebar >
118
+ < Navigation />
119
+ </ Sidebar >
120
+ ) }
120
121
{ transitions . map ( ( { item, props, key } ) => {
121
122
return (
122
123
< animated . div key = { key } style = { props } >
123
- { isMobile ? (
124
+ { isSmallScreen ? (
124
125
< Switch location = { item } >
125
126
< Route exact path = { HOME } component = { Navigation } />
126
127
< Route path = { NEW_CONVERSATION } component = { NewConversation } />
You can’t perform that action at this time.
0 commit comments