mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: build error resolved in deploy
This commit is contained in:
parent
12850eb72e
commit
b717d1660c
@ -1,13 +1,13 @@
|
||||
import React from "react";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
// types
|
||||
import { IEmailCheckData } from "types/auth";
|
||||
// icons
|
||||
import { XCircle, CircleAlert } from "lucide-react";
|
||||
// ui
|
||||
import { Button, Input, Spinner } from "@plane/ui";
|
||||
// helpers
|
||||
import { checkEmailValidity } from "@/helpers/string.helper";
|
||||
// types
|
||||
import { IEmailCheckData } from "@/types/auth";
|
||||
|
||||
type Props = {
|
||||
onSubmit: (data: IEmailCheckData) => Promise<void>;
|
||||
|
@ -1,18 +1,18 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
// hooks
|
||||
import useTimer from "hooks/use-timer";
|
||||
import useToast from "hooks/use-toast";
|
||||
import { useRouter } from "next/router";
|
||||
// types
|
||||
import { IEmailCheckData } from "types/auth";
|
||||
// icons
|
||||
import { CircleCheck, XCircle } from "lucide-react";
|
||||
// ui
|
||||
import { Button, Input, Spinner } from "@plane/ui";
|
||||
// helpers
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
// hooks
|
||||
import useTimer from "@/hooks/use-timer";
|
||||
import useToast from "@/hooks/use-toast";
|
||||
// services
|
||||
import { AuthService } from "@/services/authentication.service";
|
||||
// types
|
||||
import { IEmailCheckData } from "@/types/auth";
|
||||
import { EAuthModes } from "./root";
|
||||
|
||||
type Props = {
|
||||
|
@ -15,7 +15,7 @@ import ProfileSetup from "public/onboarding/profile-setup.svg";
|
||||
|
||||
const imagePrefix = Boolean(parseInt(process.env.NEXT_PUBLIC_DEPLOY_WITH_NGINX || "0")) ? "/spaces" : "";
|
||||
|
||||
const OnBoardingPage = () => {
|
||||
const OnBoardingPage = observer(() => {
|
||||
// router
|
||||
const router = useRouter();
|
||||
const { next_path } = router.query;
|
||||
@ -30,7 +30,7 @@ const OnBoardingPage = () => {
|
||||
const user = userStore?.currentUser;
|
||||
if (!user) {
|
||||
router.push("/");
|
||||
return;
|
||||
return <></>;
|
||||
}
|
||||
|
||||
// complete onboarding
|
||||
@ -117,6 +117,6 @@ const OnBoardingPage = () => {
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
});
|
||||
|
||||
export default observer(OnBoardingPage);
|
||||
export default OnBoardingPage;
|
||||
|
Loading…
Reference in New Issue
Block a user