Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add back accidentally commented out block

Mingjie Jiang0a4b37a0106a
diff --git a/components/app/settings/custom-domain/domain-configuration.tsx b/components/app/settings/custom-domain/domain-configuration.tsx
index 8f0434df29..b74a0b3c3e 100644
--- a/components/app/settings/custom-domain/domain-configuration.tsx
+++ b/components/app/settings/custom-domain/domain-configuration.tsx
@@ -19,41 +19,41 @@ export default function DomainConfiguration({
const subdomain = getSubdomain(domainJson.name, domainJson.apexName);
const [recordType, setRecordType] = useState(!!subdomain ? "CNAME" : "A");
- // if (data.status === "Pending Verification") {
- // const txtVerification = domainJson.verification.find(
- // (x: any) => x.type === "TXT"
- // );
- // return (
- // <div className="border-t border-gray-200 pt-5">
- // <p className="mb-5 text-sm">
- // Please set the following TXT record on{" "}
- // <InlineSnippet>{domainJson.apexName}</InlineSnippet> to prove
- // ownership of <InlineSnippet>{domainJson.name}</InlineSnippet>:
- // </p>
- // <div className="flex justify-start items-start space-x-10 bg-gray-50 p-2 rounded-md">
- // <div>
- // <p className="text-sm font-bold">Type</p>
- // <p className="text-sm font-mono mt-2">{txtVerification.type}</p>
- // </div>
- // <div>
- // <p className="text-sm font-bold">Name</p>
- // <p className="text-sm font-mono mt-2">
- // {txtVerification.domain.slice(
- // 0,
- // txtVerification.domain.length - domainJson.apexName.length - 1
- // )}
- // </p>
- // </div>
- // <div>
- // <p className="text-sm font-bold">Value</p>
- // <p className="text-sm font-mono mt-2">
- // <span className="text-ellipsis">{txtVerification.value}</span>
- // </p>
- // </div>
- // </div>
- // </div>
- // );
- // }
+ if (data.status === "Pending Verification") {
+ const txtVerification = domainJson.verification.find(
+ (x: any) => x.type === "TXT"
+ );
+ return (
+ <div className="border-t border-gray-200 pt-5">
+ <p className="mb-5 text-sm">
+ Please set the following TXT record on{" "}
+ <InlineSnippet>{domainJson.apexName}</InlineSnippet> to prove
+ ownership of <InlineSnippet>{domainJson.name}</InlineSnippet>:
+ </p>
+ <div className="flex justify-start items-start space-x-10 bg-gray-50 p-2 rounded-md">
+ <div>
+ <p className="text-sm font-bold">Type</p>
+ <p className="text-sm font-mono mt-2">{txtVerification.type}</p>
+ </div>
+ <div>
+ <p className="text-sm font-bold">Name</p>
+ <p className="text-sm font-mono mt-2">
+ {txtVerification.domain.slice(
+ 0,
+ txtVerification.domain.length - domainJson.apexName.length - 1
+ )}
+ </p>
+ </div>
+ <div>
+ <p className="text-sm font-bold">Value</p>
+ <p className="text-sm font-mono mt-2">
+ <span className="text-ellipsis">{txtVerification.value}</span>
+ </p>
+ </div>
+ </div>
+ </div>
+ );
+ }
if (data.status === "Unknown Error") {
return (