From eec3282a7802c87c132231a987bb2d634cd449dc Mon Sep 17 00:00:00 2001 From: Dylan Decrulle <81740200+ddecrulle@users.noreply.github.com> Date: Wed, 24 Jan 2024 18:51:24 +0100 Subject: [PATCH] add domains as props --- src/Footer.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Footer.tsx b/src/Footer.tsx index 1248d7759..ebd6c62c5 100644 --- a/src/Footer.tsx +++ b/src/Footer.tsx @@ -72,6 +72,7 @@ export type FooterProps = { >; style?: CSSProperties; linkList?: FooterProps.LinkList.List; + domains?: string[]; }; export namespace FooterProps { @@ -160,6 +161,12 @@ export const Footer = memo( homeLinkProps: homeLinkProps_prop, style, linkList, + domains = [ + "legifrance.gouv.fr", + "gouvernement.fr", + "service-public.fr", + "data.gouv.fr" + ], ...rest } = props; @@ -312,12 +319,7 @@ export const Footer = memo( classes.contentList )} > - {[ - "legifrance.gouv.fr", - "gouvernement.fr", - "service-public.fr", - "data.gouv.fr" - ].map((domain, i) => ( + {domains.map((domain, i) => (