feat: support skipping onboarding
This commit is contained in:
parent
7b1340c93e
commit
d5fb8a2966
5 changed files with 73 additions and 15 deletions
|
|
@ -63,6 +63,11 @@ export async function loader({
|
|||
return false;
|
||||
}
|
||||
|
||||
if (context.sessions.onboardForSubject(sessionUser.subject)) {
|
||||
// Assume onboarded
|
||||
return true;
|
||||
}
|
||||
|
||||
return subject === sessionUser.subject;
|
||||
});
|
||||
|
||||
|
|
@ -102,7 +107,8 @@ export default function Shell() {
|
|||
return (
|
||||
<>
|
||||
<Header {...data} />
|
||||
{data.uiAccess ? (
|
||||
{/* Always show the outlet if we are onboarding */}
|
||||
{(data.onboarding ? true : data.uiAccess) ? (
|
||||
<Outlet />
|
||||
) : (
|
||||
<Card className="mx-auto w-fit mt-24">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue