From 91e8acdbd36661419948d82777288c262d4f26b0 Mon Sep 17 00:00:00 2001 From: Sampo Tawast Date: Wed, 23 Aug 2023 14:26:17 +0300 Subject: [PATCH] fix: do not obscure view with terms on a11y statement page --- .../benefit/applicant/src/components/layout/Layout.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/benefit/applicant/src/components/layout/Layout.tsx b/frontend/benefit/applicant/src/components/layout/Layout.tsx index ed8012f59f..c078658812 100644 --- a/frontend/benefit/applicant/src/components/layout/Layout.tsx +++ b/frontend/benefit/applicant/src/components/layout/Layout.tsx @@ -23,6 +23,9 @@ const Layout: React.FC = ({ children, ...rest }) => { const router = useRouter(); const bgColor = router.pathname === ROUTES.LOGIN ? 'silverLight' : 'white'; + const isAccessibilityStatement = + router.pathname === ROUTES.ACCESSIBILITY_STATEMENT; + React.useEffect(() => { if (IS_CLIENT) { setIsTermsOfSerivceApproved( @@ -37,7 +40,9 @@ const Layout: React.FC = ({ children, ...rest }) => { return ( <$Main backgroundColor={bgColor} {...rest}>
- {isAuthenticated && !isTermsOfServiceApproved ? ( + {isAuthenticated && + !isAccessibilityStatement && + !isTermsOfServiceApproved ? (