@@ -34,6 +34,7 @@ import { useCurrentOrganization } from '../hooks/organizations.hooks';
3434import Statistics from '../pages/StatisticsPage/Statistics' ;
3535import RetrospectiveGanttChartPage from '../pages/RetrospectivePage/Retrospective' ;
3636import Calendar from '../pages/CalendarPage/Calendar' ;
37+ import GuestEventPage from '../pages/GuestEventPage/GuestEventPage' ;
3738
3839interface AppAuthenticatedProps {
3940 userId : string ;
@@ -121,26 +122,72 @@ const AppAuthenticated: React.FC<AppAuthenticatedProps> = ({ userId, userRole })
121122
122123 return userSettingsData . slackId || isGuest ( userRole ) ? (
123124 < AppContextUser >
124- < SidebarLayout >
125- < Switch >
126- < Route path = { routes . PROJECTS } component = { Projects } />
127- < Redirect from = { routes . CR_BY_ID } to = { routes . CHANGE_REQUESTS_BY_ID } />
128- < Route path = { routes . CHANGE_REQUESTS } component = { ChangeRequests } />
129- < Route path = { routes . GANTT } component = { GanttChartPage } />
130- < Route path = { routes . TEAMS } component = { Teams } />
131- < Route path = { routes . SETTINGS } component = { Settings } />
132- < Route path = { routes . ADMIN_TOOLS } component = { AdminTools } />
133- < Route path = { routes . INFO } component = { InfoPage } />
134- < Route path = { routes . CREDITS } component = { Credits } />
135- < Route path = { routes . FINANCE } component = { Finance } />
136- < Route path = { routes . CALENDAR } component = { Calendar } />
137- < Route path = { routes . STATISTICS } component = { Statistics } />
138- < Route path = { routes . HOME } component = { Home } />
139- < Route path = { routes . RETROSPECTIVE } component = { RetrospectiveGanttChartPage } />
140- < Redirect from = { routes . BASE } to = { routes . HOME } />
141- < Route path = "*" component = { PageNotFound } />
142- </ Switch >
143- </ SidebarLayout >
125+ {
126+ < >
127+ < Box
128+ onMouseEnter = { ( ) => {
129+ setDrawerOpen ( true ) ;
130+ } }
131+ sx = { {
132+ height : '100vh' ,
133+ position : 'fixed' ,
134+ width : 15 ,
135+ borderRight : 2 ,
136+ borderRightColor : theme . palette . background . paper
137+ } }
138+ />
139+ < IconButton
140+ onClick = { ( ) => {
141+ setDrawerOpen ( true ) ;
142+ setMoveContent ( true ) ;
143+ } }
144+ sx = { { position : 'fixed' , left : - 8 , top : '3%' } }
145+ id = "sidebar-button"
146+ >
147+ < ArrowCircleRightTwoToneIcon
148+ sx = { {
149+ fontSize : '30px' ,
150+ zIndex : 1 ,
151+ '& path:first-of-type' : { color : '#000000' } ,
152+ '& path:last-of-type' : { color : '#ef4345' }
153+ } }
154+ />
155+ </ IconButton >
156+ < Sidebar
157+ drawerOpen = { drawerOpen }
158+ setDrawerOpen = { setDrawerOpen }
159+ moveContent = { moveContent }
160+ setMoveContent = { setMoveContent }
161+ />
162+ </ >
163+ }
164+ < Box display = { 'flex' } >
165+ < HiddenContentMargin open = { moveContent } variant = "permanent" />
166+ < Container
167+ maxWidth = { false }
168+ sx = { { width : onGuestHomePage && moveContent ? 'calc(100vw - 220px)' : `calc(100vw - 30px)` } }
169+ >
170+ < Switch >
171+ < Route path = { routes . PROJECTS } component = { Projects } />
172+ < Redirect from = { routes . CR_BY_ID } to = { routes . CHANGE_REQUESTS_BY_ID } />
173+ < Route path = { routes . CHANGE_REQUESTS } component = { ChangeRequests } />
174+ < Route path = { routes . GANTT } component = { GanttChartPage } />
175+ < Route path = { routes . TEAMS } component = { Teams } />
176+ < Route path = { routes . SETTINGS } component = { Settings } />
177+ < Route path = { routes . ADMIN_TOOLS } component = { AdminTools } />
178+ < Route path = { routes . INFO } component = { InfoPage } />
179+ < Route path = { routes . CREDITS } component = { Credits } />
180+ < Route path = { routes . FINANCE } component = { Finance } />
181+ < Route path = { routes . CALENDAR } component = { Calendar } />
182+ < Route path = { routes . STATISTICS } component = { Statistics } />
183+ < Route path = { routes . HOME } component = { Home } />
184+ < Route path = { routes . RETROSPECTIVE } component = { RetrospectiveGanttChartPage } />
185+ < Route path = { routes . EVENTS } component = { GuestEventPage } />
186+ < Redirect from = { routes . BASE } to = { routes . HOME } />
187+ < Route path = "*" component = { PageNotFound } />
188+ </ Switch >
189+ </ Container >
190+ </ Box >
144191 </ AppContextUser >
145192 ) : (
146193 < SetUserPreferences userSettings = { userSettingsData } />
0 commit comments