Skip to content

Commit 764a399

Browse files
committed
Added dark theme support
1 parent a7263c5 commit 764a399

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pages/callback.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const Callback = () => {
1111
const [errorMessage, setErrorMessage] = useState("");
1212
const [authInProgress, setAuthInProgress] = useState(true);
1313
const [showErrorPage, setShowErrorPage] = useState(false);
14+
const [theme, setTheme] = useState("dark"); // Default to light theme
1415

1516
useEffect(() => {
1617
if (code) {
@@ -33,7 +34,11 @@ const Callback = () => {
3334
}, [code, router]);
3435

3536
return (
36-
<div className="flex flex-col items-center justify-center min-h-screen bg-white text-black">
37+
<div
38+
className={`flex flex-col items-center justify-center min-h-screen ${
39+
theme === "dark" ? "bg-gray-900 text-white" : "bg-white text-black"
40+
}`}
41+
>
3742
{authInProgress ? (
3843
<div className="flex flex-col items-center">
3944
<p className="text-lg mb-6">Authentication in progress...</p>

0 commit comments

Comments
 (0)