chore: lint
This commit is contained in:
@@ -27,15 +27,15 @@ export const PageWrapper = () => {
|
|||||||
setBrowserId('new-recording');
|
setBrowserId('new-recording');
|
||||||
}
|
}
|
||||||
|
|
||||||
const isNotification = (): boolean=> {
|
const isNotification = (): boolean => {
|
||||||
if (notification.isOpen && !open){
|
if (notification.isOpen && !open) {
|
||||||
setOpen(true);
|
setOpen(true);
|
||||||
}
|
}
|
||||||
return notification.isOpen;
|
return notification.isOpen;
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const isRecordingInProgress = async() => {
|
const isRecordingInProgress = async () => {
|
||||||
const id = await getActiveBrowserId();
|
const id = await getActiveBrowserId();
|
||||||
if (id) {
|
if (id) {
|
||||||
setBrowserId(id);
|
setBrowserId(id);
|
||||||
@@ -48,13 +48,13 @@ export const PageWrapper = () => {
|
|||||||
<div>
|
<div>
|
||||||
<SocketProvider>
|
<SocketProvider>
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<NavBar newRecording={handleNewRecording} recordingName={recordingName} isRecording={!!browserId}/>
|
<NavBar newRecording={handleNewRecording} recordingName={recordingName} isRecording={!!browserId} />
|
||||||
{browserId
|
{browserId
|
||||||
? (
|
? (
|
||||||
<BrowserDimensionsProvider>
|
<BrowserDimensionsProvider>
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<RecordingPage recordingName={recordingName}/>
|
<RecordingPage recordingName={recordingName} />
|
||||||
<InterpretationLog/>
|
<InterpretationLog />
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
</BrowserDimensionsProvider>
|
</BrowserDimensionsProvider>
|
||||||
)
|
)
|
||||||
@@ -64,10 +64,10 @@ export const PageWrapper = () => {
|
|||||||
}
|
}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
</SocketProvider>
|
</SocketProvider>
|
||||||
{ isNotification() ?
|
{isNotification() ?
|
||||||
<AlertSnackbar severity={notification.severity}
|
<AlertSnackbar severity={notification.severity}
|
||||||
message={notification.message}
|
message={notification.message}
|
||||||
isOpen={notification.isOpen}/>
|
isOpen={notification.isOpen} />
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user