ui: persist onboarding wizard across route redirects
This commit is contained in:
@@ -196,13 +196,13 @@ function NoCompaniesStartPage({ autoOpen = true }: { autoOpen?: boolean }) {
|
||||
<Button onClick={() => openOnboarding()}>New Company</Button>
|
||||
</div>
|
||||
</div>
|
||||
<OnboardingWizard />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function App() {
|
||||
return (
|
||||
<>
|
||||
<Routes>
|
||||
<Route path="auth" element={<AuthPage />} />
|
||||
<Route path="board-claim/:token" element={<BoardClaimPage />} />
|
||||
@@ -227,5 +227,7 @@ export function App() {
|
||||
</Route>
|
||||
</Route>
|
||||
</Routes>
|
||||
<OnboardingWizard />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@ import { NewIssueDialog } from "./NewIssueDialog";
|
||||
import { NewProjectDialog } from "./NewProjectDialog";
|
||||
import { NewGoalDialog } from "./NewGoalDialog";
|
||||
import { NewAgentDialog } from "./NewAgentDialog";
|
||||
import { OnboardingWizard } from "./OnboardingWizard";
|
||||
import { ToastViewport } from "./ToastViewport";
|
||||
import { MobileBottomNav } from "./MobileBottomNav";
|
||||
import { useDialog } from "../context/DialogContext";
|
||||
@@ -296,7 +295,6 @@ export function Layout() {
|
||||
<NewProjectDialog />
|
||||
<NewGoalDialog />
|
||||
<NewAgentDialog />
|
||||
<OnboardingWizard />
|
||||
<ToastViewport />
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user