Final style changes to login/signup

This commit is contained in:
Vladyslav Matsiiako
2023-05-31 11:25:37 -07:00
parent f20ea723b7
commit be80b5124f
5 changed files with 15 additions and 7 deletions
+3 -3
View File
@@ -56,10 +56,10 @@ export default function Login() {
value={password}
onChange={(e) => setPassword(e.target.value)}
type="password"
placeholder="Enter your password..."
placeholder="Enter your email..."
isRequired
autoComplete="current-password"
id="current-password"
autoComplete="email"
id="email"
className="h-12"
/>
</div>
+4
View File
@@ -33,6 +33,7 @@ export default function SignUp() {
const router = useRouter();
const { data: serverDetails } = useFetchServerStatus();
const [isSignupWithEmail, setIsSignupWithEmail] = useState(false);
const [isCodeInputCheckLoading, setIsCodeInputCheckLoading] = useState(false);
const { t } = useTranslation();
const { email: providerEmail, providerAuthToken, isProviderUserCompleted } = useProviderAuth();
@@ -68,6 +69,7 @@ export default function SignUp() {
if (step === 1 || step === 3 || step === 4) {
setStep(step + 1);
} else if (step === 2) {
setIsCodeInputCheckLoading(true);
// Checking if the code matches the email.
const response = await checkEmailVerificationCode({ email, code });
if (response.status === 200) {
@@ -77,6 +79,7 @@ export default function SignUp() {
} else {
setCodeError(true);
}
setIsCodeInputCheckLoading(false);
}
};
@@ -109,6 +112,7 @@ export default function SignUp() {
incrementStep={incrementStep}
setCode={setCode}
codeError={codeError}
isCodeInputCheckLoading={isCodeInputCheckLoading}
/>
);
}