@@ -55,7 +55,7 @@ export const PageWrapper = () => {
5555 const sessionParam = urlParams . get ( 'session' ) ;
5656 const storedSessionId = getTabState ( 'recordingSessionId' ) ;
5757 const storedRecordingUrl = getTabState ( 'recordingUrl' ) ;
58-
58+
5959 if ( location . pathname === '/recording-setup' && sessionParam && sessionParam === storedSessionId ) {
6060 setBrowserId ( 'new-recording' ) ;
6161 setRecordingName ( '' ) ;
@@ -67,14 +67,14 @@ export const PageWrapper = () => {
6767
6868 navigate ( '/recording' ) ;
6969 }
70- else if ( location . pathname === '/recording' ||
71- ( getTabState ( 'nextTabIsRecording' ) === 'true' && sessionParam === storedSessionId ) ) {
70+ else if ( location . pathname === '/recording' ||
71+ ( getTabState ( 'nextTabIsRecording' ) === 'true' && sessionParam === storedSessionId ) ) {
7272 setIsRecordingMode ( true ) ;
73-
73+
7474 if ( location . pathname !== '/recording' ) {
7575 navigate ( '/recording' ) ;
7676 }
77-
77+
7878 window . sessionStorage . removeItem ( 'nextTabIsRecording' ) ;
7979 } else if ( tabMode === 'main' ) {
8080 console . log ( 'Tab is in main application mode' ) ;
@@ -88,26 +88,26 @@ export const PageWrapper = () => {
8888
8989 const isAuthPage = location . pathname === '/login' || location . pathname === '/register' ;
9090 const isRecordingPage = location . pathname === '/recording' ;
91-
91+
9292 return (
9393 < div >
9494 < AuthProvider >
9595 < SocketProvider >
9696 < React . Fragment >
9797 { /* Show NavBar only for main app pages, not for recording pages */ }
9898 { ! isRecordingPage && (
99- < Box sx = { {
100- position : 'sticky' ,
101- top : 0 ,
99+ < Box sx = { {
100+ position : 'sticky' ,
101+ top : 0 ,
102102 zIndex : 1100 ,
103103 backgroundColor : 'background.paper'
104104 } } >
105105 < NavBar recordingName = { recordingName } isRecording = { false } />
106106 </ Box >
107107 ) }
108- < Box sx = { {
109- display : isAuthPage || isRecordingPage ? 'block' : 'flex' ,
110- minHeight : isAuthPage || isRecordingPage ? '100vh' : 'calc(100vh - 64px)'
108+ < Box sx = { {
109+ display : isAuthPage ? 'block' : 'flex' ,
110+ minHeight : isAuthPage ? '100vh' : 'calc(100vh - 64px)'
111111 } } >
112112 < Routes >
113113 < Route element = { < UserRoute /> } >
0 commit comments