-
+
+
+
-
Create Account
-
- Register to access EDR Freight services and railway logistics operations.
+
Create Account
+
+ Register to access EDR Freight services.
{error && (
-
+
+
+ Phone Number
+
+
+
+
+
+
+
+
+
+
Already have an account?
-
+
diff --git a/apps/edr-freight-web/portal/src/pages/accounts/VerificationOtpPage.tsx b/apps/edr-freight-web/portal/src/pages/accounts/VerificationOtpPage.tsx
index 183980e4f..a09417c01 100644
--- a/apps/edr-freight-web/portal/src/pages/accounts/VerificationOtpPage.tsx
+++ b/apps/edr-freight-web/portal/src/pages/accounts/VerificationOtpPage.tsx
@@ -3,10 +3,18 @@ import { useNavigate } from "react-router-dom";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
import { z } from "zod";
-import { ArrowRight, MailCheck, RotateCw } from "lucide-react";
+import { ArrowRight, MailCheck, RotateCw, Loader2 } from "lucide-react";
import { verificationCodeType } from "@/enums/verificationCodeType";
import useAuth from "@/hooks/useAuth";
import AuthLayout from "@/components/auth/AuthLayout";
+import {
+ Button,
+ Input,
+ Field,
+ FieldLabel,
+ FieldError,
+ FieldGroup,
+} from "@edr/ui-common";
const otpSchema = z.object({
code: z.string().regex(/^\d{6}$/, "OTP must be exactly 6 digits"),
@@ -88,92 +96,105 @@ export default function VerificationOtpPage() {
stats: { label: "Verification Security", value: "99.9%", footer: "Protected", progress: "w-[99%]" },
}}
>
-
-
-
+
+
+
-
OTP Verification
-
Enter the 6-digit code sent to:
-
-
{maskedPhone}
+
OTP Verification
+
Enter the 6-digit code sent to:
+
{error && (
-
+
{error}
)}
{resentMessage && (
-