tangled
alpha
login
or
join now
backups.bunware.org
/
atbackup
18
fork
atom
One-click backups for AT Protocol
18
fork
atom
overview
issues
2
pulls
pipelines
feat: add auth complete page with Suspense boundary
Turtlepaw
8 months ago
da801e97
a0511a16
+22
-2
1 changed file
expand all
collapse all
unified
split
docs
app
auth
complete
page.tsx
+22
-2
docs/app/auth/complete/page.tsx
···
1
1
"use client";
2
2
3
3
-
import { useEffect } from "react";
3
3
+
import { useEffect, Suspense } from "react";
4
4
import { useSearchParams } from "next/navigation";
5
5
6
6
-
export default function AuthComplete() {
6
6
+
function AuthCompleteContent() {
7
7
const searchParams = useSearchParams();
8
8
9
9
useEffect(() => {
···
35
35
</div>
36
36
);
37
37
}
38
38
+
39
39
+
export default function AuthComplete() {
40
40
+
return (
41
41
+
<Suspense
42
42
+
fallback={
43
43
+
<div className="min-h-screen flex items-center justify-center bg-gray-50">
44
44
+
<div className="max-w-md w-full space-y-8 p-8 bg-white rounded-lg shadow-md">
45
45
+
<div className="text-center">
46
46
+
<h2 className="mt-6 text-3xl font-bold text-gray-900">
47
47
+
Loading...
48
48
+
</h2>
49
49
+
</div>
50
50
+
</div>
51
51
+
</div>
52
52
+
}
53
53
+
>
54
54
+
<AuthCompleteContent />
55
55
+
</Suspense>
56
56
+
);
57
57
+
}