diff --git a/apps/desktop-ui/src/app/app/email-validator/page.tsx b/apps/desktop-ui/src/app/app/email-validator/page.tsx index e61e8121..e2f16d9c 100644 --- a/apps/desktop-ui/src/app/app/email-validator/page.tsx +++ b/apps/desktop-ui/src/app/app/email-validator/page.tsx @@ -3,7 +3,9 @@ import { DesktopOnlineGate } from "@/components/desktop/desktop-online-gate"; export default function EmailValidatorPage() { return ( - +
+ +
); } diff --git a/apps/desktop-ui/src/components/email-validator/email-validator.tsx b/apps/desktop-ui/src/components/email-validator/email-validator.tsx index c8e0d4d6..d2b5d7be 100644 --- a/apps/desktop-ui/src/components/email-validator/email-validator.tsx +++ b/apps/desktop-ui/src/components/email-validator/email-validator.tsx @@ -1,7 +1,7 @@ "use client"; import { useState, useRef, useMemo } from "react"; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; @@ -428,44 +428,62 @@ export function EmailValidator() { - - - - {t("single.cardTitle")} - {t("single.cardDescription")} - - -
-
- setEmail(e.target.value)} - onKeyDown={(e) => e.key === "Enter" && handleValidate()} - className={`h-11 pr-10 ${isValidFormat === false ? "border-red-500 focus-visible:ring-red-500" : isValidFormat === true ? "border-green-500 focus-visible:ring-green-500" : ""}`} - autoFocus - /> - {email && ( - - )} -
- + +
+ {!result && ( +
+
- {isValidFormat === false && ( -

{t("single.formatError")}

- )} - - + )} +

{t("single.cardTitle")}

+

{t("single.cardDescription")}

+
+
+ setEmail(e.target.value)} + onKeyDown={(e) => e.key === "Enter" && handleValidate()} + className={`h-12 pr-10 text-base ${isValidFormat === false ? "border-red-500 focus-visible:ring-red-500" : isValidFormat === true ? "border-green-500 focus-visible:ring-green-500" : ""}`} + autoFocus + /> + {email && ( + + )} +
+ +
+ {isValidFormat === false && ( +

{t("single.formatError")}

+ )} + {!result && ( +
+ {[ + t("validation.syntaxLabel"), + t("validation.domainLabel"), + t("validation.mxLabel"), + t("validation.mailboxLabel"), + t("validation.disposableLabel"), + t("validation.roleBasedLabel"), + ].map((label) => ( + + + {label} + + ))} +
+ )} +
{result && ( {!bulkLoading && bulkResults.length === 0 && ( - + fileInputRef.current?.click()} onDragOver={onDragOver}