Remove menu render from Backend
In the Able Pro React admin, a few dashboard menus (i.e. Default, Analytics, Components) load from our mock API (GitHub repository). If you want to remove it from your admin panel, follow the steps below and remove/edit the suggested line of code.
Delete menu-items file
dashboard.tsx
[../src/menu-items/dashboard.tsx
]
Open the file
../src/layout/Dashboard/Drawer/DrawerContent/Navigation/index
and edit the below line of code.
From:
src/layout/Dashboard/Drawer/DrawerContent/Navigation/index.tsx
To:
src/layout/Dashboard/Drawer/DrawerContent/Navigation/index.tsx
Open file
../src/layout/Dashboard/Drawer/DrawerContent/Navigation/index.tsx
and remove the below line of code.
src/layout/Dashboard/Drawer/DrawerContent/Navigation/index.tsx
Open the file
src\api\menu.ts
and remove the code below.
src\api\menu.ts
Open file
src\api\menu.ts
and edit the below line of code.
Form:
src\api\menu.ts
To:
src\api\menu.ts
Last updated