Hi,
how can i remove login page and skip to dashboard directly in React demo 1 ?
some said by changing react/demo1/src/app/routing/Routes.tsx
and replacing content to
<>
<Switch>
<Route path="/error" component={ErrorsPage} />
<Route path="/logout" component={Logout} />
<>
<MasterLayout>
<PrivateRoutes />
</MasterLayout>
</>
</Switch>
<MasterInit />
</>
Hi,
Try to remove src/app/modules/auth folder and comment all Auth dependencies also.
Regards,
Keenthemes support
I also did that with no success. first it will fail to compile because a dependency in RootReducer.ts it has in redux in setup folder which i don't know how to remove(makes more errors).. still the loading with stuck logo comes .. have any idea ? thank you
Hi again,
Try to do the next steps:
1) Re-download the latest version of Metronic (v037).
2) Remove your localStorage for demo1.
2) Open demo1 project, and comment next lines:
A) src/index.tsx => rows [4, 5, 6, 7, 9, 40, 49, 51, 53, 54]
B) src/_metronic/partials/layout/header-menus/HeaderUserMenu.tsx => rows [3, 5, 6, 8, 9, 13, 15, 16, 17, 18, 33, 37, 137, 139]
C) src/app/App.tsx => [6, 13, 16]
D) src/app/routing/AppRoutes.tsx => [10, 13, 14, 25, 31, 32, 37, 42]
E) src/app/routing/PrivateRoutes.tsx => [22]
I've just tried and it works fine.
Regards,
Keenthemes support