ui: persist onboarding wizard across route redirects
This commit is contained in:
parent
82c3080525
commit
fd90723902
2 changed files with 25 additions and 25 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue