mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-30 21:55:43 +00:00 
			
		
		
		
	refactor: move disable continue screen logic back to the continue screen
This commit is contained in:
		| @@ -9,12 +9,16 @@ export const ContinuePage = () => { | ||||
|   const params = new URLSearchParams(queryString); | ||||
|   const redirectUri = params.get("redirect_uri"); | ||||
|  | ||||
|   const { isLoggedIn } = useUserContext(); | ||||
|   const { isLoggedIn, disableContinue } = useUserContext(); | ||||
|  | ||||
|   if (!isLoggedIn) { | ||||
|     return <Navigate to="/login" />; | ||||
|   } | ||||
|  | ||||
|   if (disableContinue && redirectUri !== "null") { | ||||
|     window.location.replace(redirectUri!); | ||||
|   } | ||||
|  | ||||
|   const redirect = () => { | ||||
|     notifications.show({ | ||||
|       title: "Redirecting", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stavros
					Stavros