fixup! 💄(frontend) redesign 401 error standalone page

This commit is contained in:
Ovgodd
2026-09-25 11:13:42 +02:00
parent e9a2b26768
commit aeb9947c48
2 changed files with 5 additions and 7 deletions
@@ -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}
/>
<Waffle />
{loginAction}
{withLogin && <ButtonLogin />}
</Box>
<HelpMenu />
</Box>
@@ -1,11 +1,10 @@
import { SeparatedSection } from '@/components';
import { ButtonLogin } from '@/features/auth';
import { FooterActions } from '@/features/footer';
export const LeftPanelFooter = () => {
return (
<SeparatedSection showSeparator="top" $margin={{ top: 'auto' }}>
<FooterActions loginAction={<ButtonLogin />} />
<FooterActions withLogin />
</SeparatedSection>
);
};