diff --git a/app/lookup/[domain]/page.jsx b/app/lookup/[domain]/page.jsx index e98b56e7..6cb8fae0 100644 --- a/app/lookup/[domain]/page.jsx +++ b/app/lookup/[domain]/page.jsx @@ -33,95 +33,97 @@ const LookupDomain = async ({ params: { domain } }) => { return ( <>
-
-
-
- - Dates - -
-
- {whoisResult['Created Date'] ? ( -
-

- {new Date(whoisResult['Created Date']).toLocaleDateString( - 'en-US', - { - month: 'numeric', - day: 'numeric', - year: 'numeric', - } - )} -

-

- {new Date(whoisResult['Created Date']).toLocaleTimeString( - 'en-US', - { - hour: 'numeric', - minute: 'numeric', - } - )} -

-

- Domain registered -

-
- ) : null} - {whoisResult['Updated Date'] ? ( -
-

- {new Date(whoisResult['Updated Date']).toLocaleDateString( - 'en-US', - { - month: 'numeric', - day: 'numeric', - year: 'numeric', - } - )} -

-

- {new Date(whoisResult['Updated Date']).toLocaleTimeString( - 'en-US', - { - hour: 'numeric', - minute: 'numeric', - } - )} -

-

- Updated -

-
- ) : null} - {whoisResult['Expiry Date'] ? ( -
-

- {new Date(whoisResult['Expiry Date']).toLocaleDateString( - 'en-US', - { - month: 'numeric', - day: 'numeric', - year: 'numeric', - } - )} -

-

- {new Date(whoisResult['Expiry Date']).toLocaleTimeString( - 'en-US', - { - hour: 'numeric', - minute: 'numeric', - } - )} -

-

- Domain expiration -

-
- ) : null} + {whoisResult['Created Date'] || whoisResult['Updated Date'] || whoisResult['Expiry Date'] ? ( +
+
+
+ + Dates + +
+
+ {whoisResult['Created Date'] ? ( +
+

+ {new Date(whoisResult['Created Date']).toLocaleDateString( + 'en-US', + { + month: 'numeric', + day: 'numeric', + year: 'numeric', + } + )} +

+

+ {new Date(whoisResult['Created Date']).toLocaleTimeString( + 'en-US', + { + hour: 'numeric', + minute: 'numeric', + } + )} +

+

+ Domain registered +

+
+ ) : null} + {whoisResult['Updated Date'] ? ( +
+

+ {new Date(whoisResult['Updated Date']).toLocaleDateString( + 'en-US', + { + month: 'numeric', + day: 'numeric', + year: 'numeric', + } + )} +

+

+ {new Date(whoisResult['Updated Date']).toLocaleTimeString( + 'en-US', + { + hour: 'numeric', + minute: 'numeric', + } + )} +

+

+ Updated +

+
+ ) : null} + {whoisResult['Expiry Date'] ? ( +
+

+ {new Date(whoisResult['Expiry Date']).toLocaleDateString( + 'en-US', + { + month: 'numeric', + day: 'numeric', + year: 'numeric', + } + )} +

+

+ {new Date(whoisResult['Expiry Date']).toLocaleTimeString( + 'en-US', + { + hour: 'numeric', + minute: 'numeric', + } + )} +

+

+ Domain expiration +

+
+ ) : null} +
-
+ ) : null}
{whoisResult['Registrant Organization'] ? (
{
) : null}
-
+
Security @@ -243,7 +245,7 @@ const LookupDomain = async ({ params: { domain } }) => { />
**/} -
+
Domainlabel @@ -268,7 +270,7 @@ const LookupDomain = async ({ params: { domain } }) => {

-
+
Nameserver @@ -291,7 +293,7 @@ const LookupDomain = async ({ params: { domain } }) => {
-
+
Mailserver @@ -324,7 +326,7 @@ const LookupDomain = async ({ params: { domain } }) => { )}
-
+
A-Records