feat(component): improve fallback skeleton (#2323)

This commit is contained in:
Himself65
2023-05-11 13:35:42 +08:00
committed by GitHub
parent 47848cb5da
commit 73dbb39009
12 changed files with 130 additions and 60 deletions

View File

@@ -1,5 +1,4 @@
import { DebugLogger } from '@affine/debug';
import { useAFFiNEI18N } from '@affine/i18n/hooks';
import type { NextPage } from 'next';
import { useRouter } from 'next/router';
import { Suspense, useEffect } from 'react';
@@ -63,9 +62,8 @@ const IndexPageInner = () => {
};
const IndexPage: NextPage = () => {
const t = useAFFiNEI18N();
return (
<Suspense fallback={<PageLoading text={t['Loading All Workspaces']()} />}>
<Suspense fallback={<PageLoading />}>
<IndexPageInner />
</Suspense>
);