chore: updated plane deploy sign-in workflows for cloud and self-hosted instances (#2999)

* chore: deploy onboarding workflow

* chore: sign in workflow improvement

* fix: build error
This commit is contained in:
Anmol Singh Bhatia 2023-12-06 16:42:57 +05:30 committed by sriram veeraghanta
parent a56e7b17f1
commit 24a28e44ff
40 changed files with 1963 additions and 599 deletions

View file

@ -1,4 +1,4 @@
import React, { useState } from "react";
import React, { useEffect, useState } from "react";
import Link from "next/link";
import { Controller, useForm } from "react-hook-form";
import { CornerDownLeft, XCircle } from "lucide-react";
@ -64,6 +64,7 @@ export const UniqueCodeForm: React.FC<Props> = (props) => {
getValues,
handleSubmit,
reset,
setFocus,
} = useForm<TUniqueCodeFormValues>({
defaultValues: {
...defaultValues,
@ -146,6 +147,9 @@ export const UniqueCodeForm: React.FC<Props> = (props) => {
const isRequestNewCodeDisabled = isRequestingNewCode || resendTimerCode > 0;
const hasEmailChanged = dirtyFields.email;
useEffect(() => {
setFocus("token");
}, [setFocus]);
return (
<>
<h1 className="text-center text-2xl sm:text-2.5xl font-medium text-onboarding-text-100">