diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-29 12:13:34 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-29 18:30:05 +0200 |
| commit | 7e16f500cb7bc0cfd8bafbf6bb1555704f771231 (patch) | |
| tree | bfc2b4a475cb06a787e2c4bdf284165644e82952 /src/components/FooterNav/FooterNav.tsx | |
| parent | 5324664e87bedfaa01ba62c0c847ef5b861e69b3 (diff) | |
chore: remove old pages, components, helpers and types
Since I'm using new components, I will also rewrite the GraphQL queries
so it is easier to start from scratch.
Diffstat (limited to 'src/components/FooterNav/FooterNav.tsx')
| -rw-r--r-- | src/components/FooterNav/FooterNav.tsx | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/components/FooterNav/FooterNav.tsx b/src/components/FooterNav/FooterNav.tsx deleted file mode 100644 index 763e951..0000000 --- a/src/components/FooterNav/FooterNav.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import Link from 'next/link'; -import styles from './FooterNav.module.scss'; -import { NavItem } from '@ts/types/nav'; -import { useIntl } from 'react-intl'; - -const FooterNav = () => { - const intl = useIntl(); - - const footerNavConfig: NavItem[] = [ - { - id: 'legal-notice', - name: intl.formatMessage({ - defaultMessage: 'Legal notice', - description: 'FooterNav: legal notice link', - id: 'yWjXRx', - }), - slug: '/mentions-legales', - }, - ]; - - const navItems = footerNavConfig.map((item) => { - return ( - <li key={item.id} className={styles.item}> - <Link href={item.slug}> - <a className={styles.link}>{item.name}</a> - </Link> - </li> - ); - }); - - return ( - <nav - className={styles.nav} - aria-label={intl.formatMessage({ - defaultMessage: 'Footer', - description: 'FooterNav: aria-label', - id: 'HTdaZj', - })} - > - <ul className={styles.list}>{navItems}</ul> - </nav> - ); -}; - -export default FooterNav; |
