From 3516903326179db749fd413c6df0532252d8aa04 Mon Sep 17 00:00:00 2001 From: Xavier Balloy <686305+xballoy@users.noreply.github.com> Date: Fri, 19 Jun 2020 09:05:27 +0200 Subject: [PATCH] feat(layout-footer): use current year as default in copyright --- packages/Layout/footer/src/FooterCore.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/Layout/footer/src/FooterCore.tsx b/packages/Layout/footer/src/FooterCore.tsx index 23fa63d2f..892cc5ab3 100644 --- a/packages/Layout/footer/src/FooterCore.tsx +++ b/packages/Layout/footer/src/FooterCore.tsx @@ -15,9 +15,8 @@ interface FooterCoreComponentProps { alt?: string; className?: string; } - const defaultProps: Partial = { - children: '@ 2018 AXA Tous droits réservés', + children: `© ${new Date().getFullYear()} AXA Tous droits réservés`, href: 'https://www.axa.fr/', title: 'Site Axa', icon: 'assets/logo-axa.svg', @@ -33,17 +32,18 @@ const FooterCoreRaw: React.SFC = ({ children, }) => ( ); FooterCoreRaw.defaultProps = defaultProps; -export type FooterCoreProps = FooterCoreComponentProps & WithClassModifierOptions; +export type FooterCoreProps = FooterCoreComponentProps & + WithClassModifierOptions; const enhance = compose( withClassDefault(DEFAULT_CLASSNAME),