mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(match): fix suspense issue
This commit is contained in:
1 parent
98358e54eb
commit
2cbd3c934d
1 file changed
+4
-1
@@ -7,6 +7,7 @@ import { useApp } from '../../../os/apps/hooks/useApps';
|
|||||||
import { MatchThemeProvider } from '../providers/MatchThemeProvider';
|
import { MatchThemeProvider } from '../providers/MatchThemeProvider';
|
||||||
import MatchBottomNavigation from '../components/BottomNavigation';
|
import MatchBottomNavigation from '../components/BottomNavigation';
|
||||||
import MatchContainer from './MatchContainer';
|
import MatchContainer from './MatchContainer';
|
||||||
|
import { LoadingSpinner } from '../../../ui/components/LoadingSpinner';
|
||||||
|
|
||||||
export const MatchApp = () => {
|
export const MatchApp = () => {
|
||||||
const match = useApp('MATCH');
|
const match = useApp('MATCH');
|
||||||
@@ -19,7 +20,9 @@ export const MatchApp = () => {
|
|||||||
<AppWrapper id="contact-app">
|
<AppWrapper id="contact-app">
|
||||||
<AppTitle app={match} />
|
<AppTitle app={match} />
|
||||||
<AppContent>
|
<AppContent>
|
||||||
<MatchContainer />
|
<React.Suspense fallback={<LoadingSpinner />}>
|
||||||
|
<MatchContainer />
|
||||||
|
</React.Suspense>
|
||||||
</AppContent>
|
</AppContent>
|
||||||
<MatchBottomNavigation activePage={activePage} handleChange={handlePageChange} />
|
<MatchBottomNavigation activePage={activePage} handleChange={handlePageChange} />
|
||||||
</AppWrapper>
|
</AppWrapper>
|
||||||
|
|||||||
Reference in new issue
Block a user