diff --git a/awx/ui_next/src/App.jsx b/awx/ui_next/src/App.jsx
index ca280f7c15..5379a7dd39 100644
--- a/awx/ui_next/src/App.jsx
+++ b/awx/ui_next/src/App.jsx
@@ -94,7 +94,7 @@ const ProtectedRoute = ({ children, ...rest }) => {
{children}
- )
+ );
}
if (authRedirectTo !== null) setAuthRedirectTo(pathname);
diff --git a/awx/ui_next/src/contexts/Session.jsx b/awx/ui_next/src/contexts/Session.jsx
index 54dd72fa59..f29a8a3770 100644
--- a/awx/ui_next/src/contexts/Session.jsx
+++ b/awx/ui_next/src/contexts/Session.jsx
@@ -1,7 +1,6 @@
import React, {
useContext,
useEffect,
- useMemo,
useState,
useRef,
useCallback,
@@ -128,27 +127,19 @@ function SessionProvider({ children }) {
clearInterval(sessionIntervalId.current);
}, []);
- const value = useMemo(
- () => ({
- logout,
- authRedirectTo,
- setAuthRedirectTo,
- handleSessionContinue,
- sessionCountdown,
- isSessionExpired,
- }),
- [
- logout,
- authRedirectTo,
- setAuthRedirectTo,
- handleSessionContinue,
- sessionCountdown,
- isSessionExpired,
- ]
- );
-
return (
- {children}
+
+ {children}
+
);
}
diff --git a/awx/ui_next/src/screens/Login/Login.jsx b/awx/ui_next/src/screens/Login/Login.jsx
index f74a74c17c..a59083a7a1 100644
--- a/awx/ui_next/src/screens/Login/Login.jsx
+++ b/awx/ui_next/src/screens/Login/Login.jsx
@@ -39,7 +39,7 @@ const Login = styled(PFLogin)`
}
`;
-function AWXLogin({ alt, i18n, isAuthenticated }) {
+function AWXLogin({ alt, isAuthenticated }) {
const { authRedirectTo, isSessionExpired, setAuthRedirectTo } = useSession();
const {