mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
5b0066140f
* 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>
39 lines
1.2 KiB
TypeScript
39 lines
1.2 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="flex h-full w-full flex-col bg-onboarding-gradient-100">
|
|
<div className="flex items-center justify-between px-8 pb-4 sm:px-16 sm:py-5 lg:px-28 ">
|
|
<div className="flex items-center gap-x-2 py-10">
|
|
<Image src={BluePlaneLogoWithoutText} height={30} width={30} alt="Plane Logo" className="mr-2" />
|
|
<span className="text-2xl font-semibold sm:text-3xl">Plane</span>
|
|
</div>
|
|
</div>
|
|
<InstanceSetupFormRoot />
|
|
</div>
|
|
</>
|
|
);
|
|
});
|