Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

how remove sign in page completely from React demo 1 ?


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 />
</>

but it didnt work it just came with blank page and i also deleted "AUTHINIT" component from app.tsx around the Routes but still doesnt work and stuck at Loading logo without nothing..
can someone help with that?
ty


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


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


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(