azouaoui-med / react-pro-sidebar

React Pro Sidebar provides a set of components for creating high level and customizable side navigation

Home Page:https://azouaoui-med.github.io/react-pro-sidebar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to integration auth router by react-router'screateBrowserRouter ?

vaynevayne opened this issue · comments

https://github.com/vaynevayne/react-auth/blob/main/src/router.tsx#L90

First, the menu is generated using a list of routes, is this the best?
question:

  • how to render menu includes nest route?
  1. render all route, then in sidebar, Make authority judgment , The complexity lies in the fact that two copies of the data need to be maintained.
  2. Get all the menus, then filter out the ones with permissions.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.