chore: build error resolved in deploy

This commit is contained in:
gurusainath 2024-05-02 19:24:26 +05:30
parent 12850eb72e
commit b717d1660c
3 changed files with 11 additions and 11 deletions

View File

@ -1,13 +1,13 @@
import React from "react"; import React from "react";
import { Controller, useForm } from "react-hook-form"; import { Controller, useForm } from "react-hook-form";
// types
import { IEmailCheckData } from "types/auth";
// icons // icons
import { XCircle, CircleAlert } from "lucide-react"; import { XCircle, CircleAlert } from "lucide-react";
// ui // ui
import { Button, Input, Spinner } from "@plane/ui"; import { Button, Input, Spinner } from "@plane/ui";
// helpers // helpers
import { checkEmailValidity } from "@/helpers/string.helper"; import { checkEmailValidity } from "@/helpers/string.helper";
// types
import { IEmailCheckData } from "@/types/auth";
type Props = { type Props = {
onSubmit: (data: IEmailCheckData) => Promise<void>; onSubmit: (data: IEmailCheckData) => Promise<void>;

View File

@ -1,18 +1,18 @@
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
// hooks
import useTimer from "hooks/use-timer";
import useToast from "hooks/use-toast";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
// types
import { IEmailCheckData } from "types/auth";
// icons // icons
import { CircleCheck, XCircle } from "lucide-react"; import { CircleCheck, XCircle } from "lucide-react";
// ui // ui
import { Button, Input, Spinner } from "@plane/ui"; import { Button, Input, Spinner } from "@plane/ui";
// helpers // helpers
import { API_BASE_URL } from "@/helpers/common.helper"; import { API_BASE_URL } from "@/helpers/common.helper";
// hooks
import useTimer from "@/hooks/use-timer";
import useToast from "@/hooks/use-toast";
// services // services
import { AuthService } from "@/services/authentication.service"; import { AuthService } from "@/services/authentication.service";
// types
import { IEmailCheckData } from "@/types/auth";
import { EAuthModes } from "./root"; import { EAuthModes } from "./root";
type Props = { type Props = {

View File

@ -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 imagePrefix = Boolean(parseInt(process.env.NEXT_PUBLIC_DEPLOY_WITH_NGINX || "0")) ? "/spaces" : "";
const OnBoardingPage = () => { const OnBoardingPage = observer(() => {
// router // router
const router = useRouter(); const router = useRouter();
const { next_path } = router.query; const { next_path } = router.query;
@ -30,7 +30,7 @@ const OnBoardingPage = () => {
const user = userStore?.currentUser; const user = userStore?.currentUser;
if (!user) { if (!user) {
router.push("/"); router.push("/");
return; return <></>;
} }
// complete onboarding // complete onboarding
@ -117,6 +117,6 @@ const OnBoardingPage = () => {
</div> </div>
</div> </div>
); );
}; });
export default observer(OnBoardingPage); export default OnBoardingPage;