feat(onboarding): remove invite other step
Remove the InviteLink step from the onboarding wizard flow.
This commit is contained in:
@@ -7,7 +7,6 @@ import { buildSteps } from "./steps";
|
|||||||
import AdminAccount from "./steps/admin-account";
|
import AdminAccount from "./steps/admin-account";
|
||||||
import DonePage from "./steps/done-page";
|
import DonePage from "./steps/done-page";
|
||||||
import GetPublicDomain from "./steps/get-public-domain";
|
import GetPublicDomain from "./steps/get-public-domain";
|
||||||
import InviteLink from "./steps/invite-link";
|
|
||||||
import ServerName from "./steps/server-name";
|
import ServerName from "./steps/server-name";
|
||||||
import WelcomePage from "./steps/welcome-page";
|
import WelcomePage from "./steps/welcome-page";
|
||||||
import WhoCanSignUp from "./steps/who-can-sign-up";
|
import WhoCanSignUp from "./steps/who-can-sign-up";
|
||||||
@@ -79,8 +78,6 @@ export default function OnboardingPage() {
|
|||||||
<ServerName serverName={serverName} setServerName={setServerName} />
|
<ServerName serverName={serverName} setServerName={setServerName} />
|
||||||
<AdminAccount serverName={serverName} />
|
<AdminAccount serverName={serverName} />
|
||||||
<WhoCanSignUp />
|
<WhoCanSignUp />
|
||||||
{/* lazy call invite link API */}
|
|
||||||
<InviteLink />
|
|
||||||
{showTunnelStep && <GetPublicDomain />}
|
{showTunnelStep && <GetPublicDomain />}
|
||||||
<DonePage serverName={serverName} />
|
<DonePage serverName={serverName} />
|
||||||
</Wizard>
|
</Wizard>
|
||||||
|
|||||||
@@ -25,18 +25,13 @@ export function buildSteps(showTunnelStep: boolean): Step[] {
|
|||||||
name: "whoCanSignUp",
|
name: "whoCanSignUp",
|
||||||
label: t("welcome:onboarding.who_sign_up")
|
label: t("welcome:onboarding.who_sign_up")
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "inviteLink",
|
|
||||||
label: t("welcome:onboarding.invites"),
|
|
||||||
canJumpTo: ["whoCanSignUp"]
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
if (showTunnelStep) {
|
if (showTunnelStep) {
|
||||||
base.push({
|
base.push({
|
||||||
name: "getPublicDomain",
|
name: "getPublicDomain",
|
||||||
label: t("welcome:onboarding.tunnel_get_domain"),
|
label: t("welcome:onboarding.tunnel_get_domain"),
|
||||||
canJumpTo: ["whoCanSignUp", "inviteLink"]
|
canJumpTo: ["whoCanSignUp"]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,8 +39,8 @@ export function buildSteps(showTunnelStep: boolean): Step[] {
|
|||||||
name: "donePage",
|
name: "donePage",
|
||||||
label: t("welcome:onboarding.done"),
|
label: t("welcome:onboarding.done"),
|
||||||
canJumpTo: showTunnelStep
|
canJumpTo: showTunnelStep
|
||||||
? ["whoCanSignUp", "inviteLink", "getPublicDomain"]
|
? ["whoCanSignUp", "getPublicDomain"]
|
||||||
: ["whoCanSignUp", "inviteLink"]
|
: ["whoCanSignUp"]
|
||||||
});
|
});
|
||||||
|
|
||||||
return base;
|
return base;
|
||||||
|
|||||||
Reference in New Issue
Block a user