Skip to content

Commit

Permalink
Cleanup AppRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg committed Oct 11, 2024
1 parent 7de8701 commit dfb5b6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Routers/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,13 @@ export default function AppRouter() {

useRedirect("/user", "/users");

const allRoutes = {
// Merge in Plugin Routes
routes = {
...routes,
...pluginRoutes,
};

const pages = useRoutes(allRoutes) || <Error404 />;
const pages = useRoutes(routes) || <Error404 />;

const path = usePath();
const [sidebarOpen, setSidebarOpen] = useState(false);
Expand Down

0 comments on commit dfb5b6b

Please sign in to comment.