mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 09:57:00 +01:00
Moved suspense boundary.
This commit is contained in:
parent
fb72485f88
commit
709f46a391
@ -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…
Reference in New Issue
Block a user