mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fd5b7d20a8
* chore: instance type updated * chore: instance not ready screen added * chore: instance layout added * chore: instance magic sign in endpoint and type added * chore: instance admin password endpoint added * chore: instance setup page added * chore: instance setup form added * chore: instance layout updated * fix: instance admin workflow setup * fix: admin workflow setup --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import { useEffect, useCallback } from "react";
|
|
import { observer } from "mobx-react-lite";
|
|
import Image from "next/image";
|
|
// components
|
|
import { InstanceSetupFormRoot } from "components/instance";
|
|
// hooks
|
|
import { useMobxStore } from "lib/mobx/store-provider";
|
|
// images
|
|
import BluePlaneLogoWithoutText from "public/plane-logos/blue-without-text.png";
|
|
|
|
export const InstanceSetupView = observer(() => {
|
|
// store
|
|
const {
|
|
user: { fetchCurrentUser },
|
|
} = useMobxStore();
|
|
|
|
const mutateUserInfo = useCallback(() => {
|
|
fetchCurrentUser();
|
|
}, [fetchCurrentUser]);
|
|
|
|
useEffect(() => {
|
|
mutateUserInfo();
|
|
}, [mutateUserInfo]);
|
|
|
|
return (
|
|
<>
|
|
<div className={`bg-onboarding-gradient-100 h-full w-full`}>
|
|
<div className="flex items-center justify-between sm:py-5 px-8 pb-4 sm:px-16 lg:px-28 ">
|
|
<div className="flex gap-x-2 py-10 items-center">
|
|
<Image src={BluePlaneLogoWithoutText} height={30} width={30} alt="Plane Logo" className="mr-2" />
|
|
<span className="font-semibold text-2xl sm:text-3xl">Plane</span>
|
|
</div>
|
|
</div>
|
|
<InstanceSetupFormRoot />
|
|
</div>
|
|
</>
|
|
);
|
|
});
|