mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 13:17:19 +01:00
Moved suspense boundary.
This commit is contained in:
parent
fb72485f88
commit
709f46a391
2 changed files with 7 additions and 7 deletions
|
|
@ -3,7 +3,6 @@ import { useEffect } from 'react';
|
|||
import { Loading } from 'react-basics';
|
||||
import { useRouter, useSearchParams } from 'next/navigation';
|
||||
import { setClientAuthToken } from 'lib/client';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
export default function SSOPage() {
|
||||
const router = useRouter();
|
||||
|
|
@ -19,9 +18,5 @@ export default function SSOPage() {
|
|||
}
|
||||
}, [router, url, token]);
|
||||
|
||||
return (
|
||||
<Suspense>
|
||||
<Loading />
|
||||
</Suspense>
|
||||
);
|
||||
return <Loading />;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
import { Suspense } from 'react';
|
||||
import SSOPage from './SSOPage';
|
||||
|
||||
export default function () {
|
||||
return <SSOPage />;
|
||||
return (
|
||||
<Suspense>
|
||||
<SSOPage />
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue