mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
8d15b9e7de
* chore: format all files in the project * fix: removing @types/react from dependencies * fix: adding prettier and eslint config * chore: format files * fix: upgrading turbo version * chore: ignoring warnings and adding todos * fix: updated the type of bubble menu item in the document editor * chore: format files --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@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="mx-auto h-full rounded-t-md border-x border-t border-custom-border-200 bg-onboarding-gradient-100 px-4 pt-4 shadow-sm sm:w-4/5 md:w-2/3">
|
|
<div className="h-full overflow-auto rounded-t-md bg-onboarding-gradient-200 pb-56 pt-24">
|
|
<div className="mx-auto flex flex-col">
|
|
<InstanceSetupSignInForm handleNextStep={() => setSetupStep(EInstanceSetupSteps.DONE)} />
|
|
</div>
|
|
<LatestFeatureBlock />
|
|
</div>
|
|
</div>
|
|
)}
|
|
</>
|
|
);
|
|
};
|