File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const Callback = () => {
11
11
const [ errorMessage , setErrorMessage ] = useState ( "" ) ;
12
12
const [ authInProgress , setAuthInProgress ] = useState ( true ) ;
13
13
const [ showErrorPage , setShowErrorPage ] = useState ( false ) ;
14
+ const [ theme , setTheme ] = useState ( "dark" ) ; // Default to light theme
14
15
15
16
useEffect ( ( ) => {
16
17
if ( code ) {
@@ -33,7 +34,11 @@ const Callback = () => {
33
34
} , [ code , router ] ) ;
34
35
35
36
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
+ >
37
42
{ authInProgress ? (
38
43
< div className = "flex flex-col items-center" >
39
44
< p className = "text-lg mb-6" > Authentication in progress...</ p >
You can’t perform that action at this time.
0 commit comments