Skip to content

Commit

Permalink
Fixed active trail types
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Nov 10, 2023
1 parent 2b66a08 commit 6777a01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/hooks/useActiveTrail.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import {useMemo} from "react";
import {DrupalMenuLinkContent} from "next-drupal";
import {DrupalMenuLinkContent} from "@lib/types";

const useActiveTrail = (menuItems: DrupalMenuLinkContent[], currentPath?: string) => {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,5 @@ export interface PublicationCitationType extends JsonApiResource {
}

export interface DrupalMenuLinkContent extends NextDrupalMenuLinkContent {
items?: NextDrupalMenuLinkContent[]
items: DrupalMenuLinkContent[]
}

0 comments on commit 6777a01

Please sign in to comment.