From 7983866a623347366da6ebf25f2b660a4c8b1034 Mon Sep 17 00:00:00 2001 From: Antoine Lelong Date: Thu, 23 Jan 2025 10:05:53 +0100 Subject: [PATCH] fix: isLanding check only page and not if user is logged to display header and footer --- webapp/CHANGELOG.md | 7 +++---- webapp/src/layouts/DefaultLayout.tsx | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/webapp/CHANGELOG.md b/webapp/CHANGELOG.md index 16938ac4..29ec6925 100644 --- a/webapp/CHANGELOG.md +++ b/webapp/CHANGELOG.md @@ -1,11 +1,10 @@ ## [0.75.7](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.75.6...v0.75.7) (2025-01-22) - ### Bug Fixes -* **ci-cd:** use token-bureau ([2d26332](https://github.com/SocialGouv/carte-jeune-engage/commit/2d26332bd9e8624930bdad2f1db71230ee4471b4)) -* comment auth code in middleware ([380f3e3](https://github.com/SocialGouv/carte-jeune-engage/commit/380f3e3d377c05b09c2ff19b6e07ed57d678229f)) -* middleware issue ([92ddaf4](https://github.com/SocialGouv/carte-jeune-engage/commit/92ddaf40e0ed84b14d27fb2c2eff04ef4c555e15)) +- **ci-cd:** use token-bureau ([2d26332](https://github.com/SocialGouv/carte-jeune-engage/commit/2d26332bd9e8624930bdad2f1db71230ee4471b4)) +- comment auth code in middleware ([380f3e3](https://github.com/SocialGouv/carte-jeune-engage/commit/380f3e3d377c05b09c2ff19b6e07ed57d678229f)) +- middleware issue ([92ddaf4](https://github.com/SocialGouv/carte-jeune-engage/commit/92ddaf40e0ed84b14d27fb2c2eff04ef4c555e15)) ## [0.75.6](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.75.5...v0.75.6) (2025-01-22) diff --git a/webapp/src/layouts/DefaultLayout.tsx b/webapp/src/layouts/DefaultLayout.tsx index 865f0f07..7b0dfb3c 100644 --- a/webapp/src/layouts/DefaultLayout.tsx +++ b/webapp/src/layouts/DefaultLayout.tsx @@ -58,7 +58,8 @@ export default function DefaultLayout({ children }: { children: ReactNode }) { pathname === "/mentions-legales" || pathname === "/politique-de-confidentialite"; - const isLanding = (isPublicPage || isLegalPage) && !isOtpGenerated && !user; + const isLanding = isPublicPage || isLegalPage; + // && !isOtpGenerated && !user; const handleBeforeInstallPrompt = (event: Event) => { // Prevent the default behavior to keep the event available for later use