Skip to content

Commit

Permalink
feat: eclaireurs
Browse files Browse the repository at this point in the history
  • Loading branch information
gregoirelacoste committed Sep 29, 2021
1 parent aa513ee commit 07d3c45
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/app/website/src/hooks/useGetMenus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ const useGetMenus = (locale: SupportedLanguage): GetMenus => {
const HEADER_LINKS = ['contribuer', 'faq', 'guides'];
const FOOTER_LINKS = ['contact', 'about', 'faq', 'legal', 'cgu', 'press'];
const footer: Link[] = [];
const header: Link[] = [];
const header: Link[] = [
{ label: t('header.guides'), href: () => navigate(t('links.guides')) }
];
const formatLink = (node: GetLinksQuery['allMdx']['nodes'][0]) => ({
href: () => navigate(t('links.' + node.frontmatter?.name)) || '#',
label: node.frontmatter?.label || ''
Expand Down
2 changes: 1 addition & 1 deletion src/components/website/molecules/Header/ListLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import NavDesktopItem from '../../atoms/NavDesktopItem/NavDesktopItem';

export type Link = {
label: string;
href: () => void;
href?: () => void;
};

interface LinksProps {
Expand Down
4 changes: 3 additions & 1 deletion src/libs/i18n/resources/en/website.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"header": {
"ctaText": "Add DisMoi"
"ctaText": "Add DisMoi",
"guides": "Guides"
},
"footer": {
"followUsOn": "Follow us on {{network}}",
Expand Down Expand Up @@ -113,6 +114,7 @@
}
},
"links": {
"guides": "/en/guides",
"about": "/en/about",
"contact": "/en/contact",
"contribuer": "/en/creating-a-post",
Expand Down
4 changes: 3 additions & 1 deletion src/libs/i18n/resources/fr/website.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"header": {
"ctaText": "Ajouter DisMoi"
"ctaText": "Ajouter DisMoi",
"guides": "Eclaireurs"
},
"footer": {
"followUsOn": "Suivez-nous sur {{network}}",
Expand Down Expand Up @@ -113,6 +114,7 @@
}
},
"links": {
"guides": "/fr/eclaireurs",
"about": "/fr/a-propos",
"contact": "/fr/contact",
"contribuer": "/fr/contribuer",
Expand Down

0 comments on commit 07d3c45

Please sign in to comment.