Skip to content

Commit

Permalink
fix: split quickAccessItems + a propos
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Aug 7, 2023
1 parent d315a82 commit b56df39
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {
type FooterProps,
} from "@codegouvfr/react-dsfr/Footer"

import { navigationItems, quickAccessItems } from "@/utils/navigationItems"
import { navigationItems } from "@/utils/navigationItems"
import { quickAccessItems } from "@/utils/quickAccessItems"

const otherLinks: FooterProps.LinkList.Column = {
categoryName: "Autres",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Header as DSFRHeader } from "@codegouvfr/react-dsfr/Header"
import { quickAccessItems } from "@/utils/navigationItems"
import { quickAccessItems } from "@/utils/quickAccessItems"
import Navigation from "./Navigation"

export default function Header() {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/navigationItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const navigationItems: MainNavigationProps.Item[] = [
menuLinks: [
{
linkProps: {
href: "/about",
href: "/a-propos",
target: "_self",
},
text: "À propos",
Expand Down
13 changes: 13 additions & 0 deletions src/utils/quickAccessItems.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { type HeaderProps } from "@codegouvfr/react-dsfr/Header"

const quickAccessItems: HeaderProps.QuickAccessItem[] = [
{
iconId: "fr-icon-file-text-line",
linkProps: {
href: "/documentation",
},
text: "Documentation",
},
]

export { quickAccessItems }

0 comments on commit b56df39

Please sign in to comment.