Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify and rework/improve navItems/navTree in navGenerator #2

Open
NicoZweifel opened this issue Jan 15, 2024 · 0 comments
Open

Unify and rework/improve navItems/navTree in navGenerator #2

NicoZweifel opened this issue Jan 15, 2024 · 0 comments

Comments

@NicoZweifel
Copy link
Owner

NicoZweifel commented Jan 15, 2024

Unify and rework/improve navGenerator to return combined object and adjust navItems/navTree to use/return maps/indexes.

  • use a map or index access instead of find and filter in nested anonymous functions (createNavNode) that take an object reference.
  • combine navItems and navTree into one object in navGenerator and pageProps that supports traversing of the tree and index access of lowercase paths.
  • use/update navGenerator.test.ts
@NicoZweifel NicoZweifel changed the title Unify and rework/improve navItems/navTree Unify and rework/improve navItems/navTree in navGenerator Jan 15, 2024
@NicoZweifel NicoZweifel changed the title Unify and rework/improve navItems/navTree in navGenerator Unify and rework/improve navItems/navTree in navGenerator Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant