From 7201ce114c54ac3e3c9aad313e1add77815fafca Mon Sep 17 00:00:00 2001 From: Mathis Date: Sun, 10 Dec 2023 21:48:57 +0100 Subject: [PATCH] fix compile error --- app/lookup/[domain]/page.tsx | 8 +++++--- components/overview/DnsRecordsWidget.tsx | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/lookup/[domain]/page.tsx b/app/lookup/[domain]/page.tsx index 48505437..9731e6c6 100644 --- a/app/lookup/[domain]/page.tsx +++ b/app/lookup/[domain]/page.tsx @@ -4,7 +4,9 @@ import whoiser from 'whoiser'; import { isAvailable } from '@/lib/whois'; import DomainNotRegistered from '../../../components/DomainNotRegistered'; -import DnsRecordsWidget from '../../../components/overview/DnsRecordsWidget'; +import DnsRecordsWidget, { + DnsRecordType, +} from '../../../components/overview/DnsRecordsWidget'; import DomainDatesWidget from '../../../components/overview/DomainDatesWidget'; import DomainlabelWidget from '../../../components/overview/DomainlabelWidget'; import DomainOwnerInfoWidget from '../../../components/overview/DomainOwnerInfoWidget'; @@ -37,9 +39,9 @@ const LookupDomain: FC = async ({
- + - +
diff --git a/components/overview/DnsRecordsWidget.tsx b/components/overview/DnsRecordsWidget.tsx index 13e9fc15..3650575f 100644 --- a/components/overview/DnsRecordsWidget.tsx +++ b/components/overview/DnsRecordsWidget.tsx @@ -6,7 +6,7 @@ import DnsLookup from '@/utils/DnsLookup'; import RecordList from './RecordList'; -enum DnsRecordType { +export enum DnsRecordType { A = 'A', AAAA = 'AAAA', CAA = 'CAA',