feat: enhance error handling and improve API response management across components
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m39s

This commit is contained in:
2025-04-14 01:05:07 +05:00
parent 0d578c9add
commit 6365a701ba
11 changed files with 111 additions and 66 deletions

View File

@ -57,11 +57,11 @@ export default function VerifyOTPForm({
return (
<form
onSubmit={handleSubmit(onSubmit)}
className="w-full max-w-xs rounded-lg shadow my-4"
className="w-full max-w-xs title-bg border rounded-lg shadow my-4"
>
<div className="grid pb-4 pt-4 gap-4 px-4">
<div className="">
<Label htmlFor="otp-number" className="text-gray-500">
<div className="flex flex-col gap-4">
<Label htmlFor="otp-number" className="sr-only text-gray-500">
Enter the OTP
</Label>
<Input
@ -69,6 +69,8 @@ export default function VerifyOTPForm({
id="otp-number"
{...register("pin")}
type="text"
placeholder="Enter OTP"
className="bg-white dark:bg-sarLinkOrange/10"
/>
{errors.pin && (
<p className="text-red-500 text-sm">{errors.pin.message}</p>