forked from github/plane
11987994a1
* chore: update onboarding workflow * dev: update user count tasks * fix: forgot password endpoint * dev: instance and onboarding updates * chore: update sign-in workflow for cloud and self-hosted instances (#2993) * chore: updated auth services * chore: new signin workflow updated * chore: updated content * chore: instance admin setup * dev: update instance verification task * dev: run the instance verification task every 4 hours * dev: update migrations * chore: update latest features image --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import { useState } from "react";
|
|
// components
|
|
import { LatestFeatureBlock } from "components/common";
|
|
import { InstanceSetupDone, InstanceSetupSignInForm } from "components/instance";
|
|
|
|
export enum EInstanceSetupSteps {
|
|
SIGN_IN = "SIGN_IN",
|
|
DONE = "DONE",
|
|
}
|
|
|
|
export const InstanceSetupFormRoot = () => {
|
|
// states
|
|
const [setupStep, setSetupStep] = useState(EInstanceSetupSteps.SIGN_IN);
|
|
|
|
return (
|
|
<>
|
|
{setupStep === EInstanceSetupSteps.DONE && <InstanceSetupDone />}
|
|
{setupStep === EInstanceSetupSteps.SIGN_IN && (
|
|
<div className="h-full bg-onboarding-gradient-100 md:w-2/3 sm:w-4/5 px-4 pt-4 rounded-t-md mx-auto shadow-sm border-x border-t border-custom-border-200">
|
|
<div className="bg-onboarding-gradient-200 h-full pt-24 pb-56 rounded-t-md overflow-auto">
|
|
<div className="mx-auto flex flex-col">
|
|
<InstanceSetupSignInForm handleNextStep={() => setSetupStep(EInstanceSetupSteps.DONE)} />
|
|
</div>
|
|
<LatestFeatureBlock />
|
|
</div>
|
|
</div>
|
|
)}
|
|
</>
|
|
);
|
|
};
|