refactor(login): remove LoadingOverlay from LoginPage and return null
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
import { initiateOAuthFlow } from '@/lib/api/oauth'
|
import { initiateOAuthFlow } from '@/lib/api/oauth'
|
||||||
import LoadingOverlay from '@/components/LoadingOverlay'
|
|
||||||
|
|
||||||
export default function LoginPage() {
|
export default function LoginPage() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -10,10 +9,5 @@ export default function LoginPage() {
|
|||||||
initiateOAuthFlow()
|
initiateOAuthFlow()
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return null
|
||||||
<LoadingOverlay
|
|
||||||
logoSrc="/ciphera_icon_no_margins.png"
|
|
||||||
title="Redirecting to sign in..."
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user