Skip to content

Commit bcad1a1

Browse files
authored
add domains as props (#228)
1 parent 9f2928a commit bcad1a1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/Footer.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export type FooterProps = {
7272
>;
7373
style?: CSSProperties;
7474
linkList?: FooterProps.LinkList.List;
75+
domains?: string[];
7576
};
7677

7778
export namespace FooterProps {
@@ -160,6 +161,12 @@ export const Footer = memo(
160161
homeLinkProps: homeLinkProps_prop,
161162
style,
162163
linkList,
164+
domains = [
165+
"legifrance.gouv.fr",
166+
"gouvernement.fr",
167+
"service-public.fr",
168+
"data.gouv.fr"
169+
],
163170
...rest
164171
} = props;
165172

@@ -312,12 +319,7 @@ export const Footer = memo(
312319
classes.contentList
313320
)}
314321
>
315-
{[
316-
"legifrance.gouv.fr",
317-
"gouvernement.fr",
318-
"service-public.fr",
319-
"data.gouv.fr"
320-
].map((domain, i) => (
322+
{domains.map((domain, i) => (
321323
<li
322324
className={cx(
323325
fr.cx("fr-footer__content-item" as any),

0 commit comments

Comments
 (0)