Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
maaaathis committed Dec 10, 2023
1 parent d7cc0b7 commit 7201ce1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions app/lookup/[domain]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -37,9 +39,9 @@ const LookupDomain: FC<LookupDomainProps> = async ({
<div className="flex flex-col gap-4 md:grid md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8">
<DomainDatesWidget domain={domain} />
<DomainOwnerInfoWidget domain={domain} />
<DnsRecordsWidget type="A" domain={domain} />
<DnsRecordsWidget type={DnsRecordType.A} domain={domain} />
<NameserverWidget domain={domain} />
<DnsRecordsWidget type="MX" domain={domain} />
<DnsRecordsWidget type={DnsRecordType.MX} domain={domain} />
<DomainlabelWidget domain={domain} />
</div>
</>
Expand Down
2 changes: 1 addition & 1 deletion components/overview/DnsRecordsWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import DnsLookup from '@/utils/DnsLookup';

import RecordList from './RecordList';

enum DnsRecordType {
export enum DnsRecordType {
A = 'A',
AAAA = 'AAAA',
CAA = 'CAA',
Expand Down

0 comments on commit 7201ce1

Please sign in to comment.