Skip to content

Commit

Permalink
feat(layout-footer): use current year as default in copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
xballoy committed Jun 19, 2020
1 parent 36958c3 commit 3516903
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/Layout/footer/src/FooterCore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ interface FooterCoreComponentProps {
alt?: string;
className?: string;
}

const defaultProps: Partial<FooterCoreComponentProps> = {
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',
Expand All @@ -33,17 +32,18 @@ const FooterCoreRaw: React.SFC<FooterCoreComponentProps> = ({
children,
}) => (
<footer className={className}>
<div className='container-fluid container'>
<a className='af-logo' href={href} title={title} target='blank'>
<img className='af-logo__brand' src={icon} alt={alt} />
<div className="container-fluid container">
<a className="af-logo" href={href} title={title} target="blank">
<img className="af-logo__brand" src={icon} alt={alt} />
</a>
<div className='af-footer-content'>{children}</div>
<div className="af-footer-content">{children}</div>
</div>
</footer>
);
FooterCoreRaw.defaultProps = defaultProps;

export type FooterCoreProps = FooterCoreComponentProps & WithClassModifierOptions;
export type FooterCoreProps = FooterCoreComponentProps &
WithClassModifierOptions;

const enhance = compose<FooterCoreComponentProps, FooterCoreProps>(
withClassDefault(DEFAULT_CLASSNAME),
Expand Down

0 comments on commit 3516903

Please sign in to comment.