feat: Add online user guide with screenshots (#203) #204
@@ -371,7 +371,7 @@ function App() {
|
||||
// Skip on auth routes -- their query params must survive until Auth0 SDK processes them
|
||||
useEffect(() => {
|
||||
const path = window.location.pathname;
|
||||
if (path === '/callback' || path === '/signup' || path === '/verify-email' || path === '/guide') return;
|
||||
if (path === '/callback' || path === '/signup' || path === '/verify-email' || path === '/guide' || path === '/guide/') return;
|
||||
const screen = routeToScreen[path];
|
||||
if (screen && screen !== activeScreen) {
|
||||
navigateToScreen(screen, { source: 'url-sync' });
|
||||
@@ -383,7 +383,7 @@ function App() {
|
||||
// Auth0 SDK needs for handleRedirectCallback (child effects fire before parent effects)
|
||||
useEffect(() => {
|
||||
const path = window.location.pathname;
|
||||
if (path === '/callback' || path === '/signup' || path === '/verify-email' || path === '/guide') return;
|
||||
if (path === '/callback' || path === '/signup' || path === '/verify-email' || path === '/guide' || path === '/guide/') return;
|
||||
const targetPath = screenToRoute[activeScreen];
|
||||
if (targetPath && path !== targetPath) {
|
||||
window.history.replaceState(null, '', targetPath);
|
||||
@@ -502,7 +502,7 @@ function App() {
|
||||
const isSignupRoute = location.pathname === '/signup';
|
||||
const isVerifyEmailRoute = location.pathname === '/verify-email';
|
||||
const isOnboardingRoute = location.pathname === '/onboarding';
|
||||
const isGuideRoute = location.pathname === '/guide';
|
||||
const isGuideRoute = location.pathname === '/guide' || location.pathname === '/guide/';
|
||||
const isAuthRoute = isSignupRoute || isVerifyEmailRoute || isOnboardingRoute;
|
||||
const shouldShowHomePage = !isGarageRoute && !isCallbackRoute && !isAuthRoute && !isGuideRoute;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user