mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(phone/call-modal): suspense fallback on contact lookup in call modal
This commit is contained in:
1 parent
553e04ef3c
commit
7ed5f54709
1 file changed
+9
-6
@@ -10,6 +10,7 @@ import getBackgroundPath from '../../../apps/settings/utils/getBackgroundPath';
|
||||
import CallContactContainer from './CallContactContainer';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import RingingText from './RingingText';
|
||||
import { LoadingSpinner } from '../../../ui/components/LoadingSpinner';
|
||||
|
||||
const useStyles = makeStyles({
|
||||
root: {
|
||||
@@ -36,13 +37,15 @@ export const CallModal: React.FC = () => {
|
||||
backgroundImage: `url(${getBackgroundPath(settings.wallpaper.value)})`,
|
||||
}}
|
||||
>
|
||||
<Box className={classes.root} padding={5}>
|
||||
<Box>
|
||||
<CallContactContainer />
|
||||
{call.is_accepted ? <CallTimer /> : call.isTransmitter && <RingingText />}
|
||||
<React.Suspense fallback={<LoadingSpinner />}>
|
||||
<Box className={classes.root} padding={5}>
|
||||
<Box>
|
||||
<CallContactContainer />
|
||||
{call.is_accepted ? <CallTimer /> : call.isTransmitter && <RingingText />}
|
||||
</Box>
|
||||
<CallControls />
|
||||
</Box>
|
||||
<CallControls />
|
||||
</Box>
|
||||
</React.Suspense>
|
||||
</AppContent>
|
||||
</AppWrapper>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user