Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • 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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(