From aeb9947c48c1404fb07991379a076c8143fcf033 Mon Sep 17 00:00:00 2001 From: Ovgodd Date: Fri, 25 Sep 2026 11:10:08 +0200 Subject: [PATCH] =?UTF-8?q?fixup!=20=F0=9F=92=84(frontend)=20redesign=2040?= =?UTF-8?q?1=20error=20standalone=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/features/footer/components/FooterActions.tsx | 9 ++++----- .../features/left-panel/components/LeftPanelFooter.tsx | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/frontend/apps/impress/src/features/footer/components/FooterActions.tsx b/src/frontend/apps/impress/src/features/footer/components/FooterActions.tsx index ec2aff180..d2a8f5164 100644 --- a/src/frontend/apps/impress/src/features/footer/components/FooterActions.tsx +++ b/src/frontend/apps/impress/src/features/footer/components/FooterActions.tsx @@ -1,11 +1,10 @@ import { UserMenu } from '@gouvfr-lasuite/ui-components'; -import { ReactNode } from 'react'; import { useTranslation } from 'react-i18next'; import { createGlobalStyle } from 'styled-components'; import { Box } from '@/components'; import { Waffle } from '@/components/Waffle'; -import { gotoLogout, useAuth } from '@/features/auth'; +import { ButtonLogin, gotoLogout, useAuth } from '@/features/auth'; import { HelpMenu } from '@/features/help'; import { LanguagePicker } from '@/features/language/components/LanguagePicker'; @@ -16,10 +15,10 @@ const FooterActionsGlobalStyle = createGlobalStyle` `; type FooterActionsProps = { - loginAction?: ReactNode; + withLogin?: boolean; }; -export const FooterActions = ({ loginAction }: FooterActionsProps) => { +export const FooterActions = ({ withLogin }: FooterActionsProps) => { const { t } = useTranslation(); const { user } = useAuth(); @@ -47,7 +46,7 @@ export const FooterActions = ({ loginAction }: FooterActionsProps) => { withMobileView={false} /> - {loginAction} + {withLogin && } diff --git a/src/frontend/apps/impress/src/features/left-panel/components/LeftPanelFooter.tsx b/src/frontend/apps/impress/src/features/left-panel/components/LeftPanelFooter.tsx index 5bac7288c..4125e0d64 100644 --- a/src/frontend/apps/impress/src/features/left-panel/components/LeftPanelFooter.tsx +++ b/src/frontend/apps/impress/src/features/left-panel/components/LeftPanelFooter.tsx @@ -1,11 +1,10 @@ import { SeparatedSection } from '@/components'; -import { ButtonLogin } from '@/features/auth'; import { FooterActions } from '@/features/footer'; export const LeftPanelFooter = () => { return ( - } /> + ); };