🩹(loading) fix header doubled when loading room

the whole screen wrapper thing is not that great… needs improvements to
prevent that kind of stuff
This commit is contained in:
Emmanuel Pelletier
2024-07-29 10:11:31 +02:00
parent 9edb9c2f57
commit 34e21b77b5
2 changed files with 11 additions and 12 deletions

View File

@@ -32,16 +32,14 @@ export const Room = () => {
}
return (
<Screen>
<Conference
roomId={roomId}
mode={mode}
userConfig={{
...existingUserChoices,
...(skipJoinScreen ? { username: user?.email as string } : {}),
...userConfig,
}}
/>
</Screen>
<Conference
roomId={roomId}
mode={mode}
userConfig={{
...existingUserChoices,
...(skipJoinScreen ? { username: user?.email as string } : {}),
...userConfig,
}}
/>
)
}

View File

@@ -1,5 +1,6 @@
import { ErrorScreen } from './ErrorScreen'
import { LoadingScreen } from './LoadingScreen'
import { Screen } from './Screen'
export const QueryAware = ({
status,
@@ -16,5 +17,5 @@ export const QueryAware = ({
return <LoadingScreen />
}
return children
return <Screen>{children}</Screen>
}