diff --git a/app/lookup/[domain]/(overview)/_components/IpOverviewItem.tsx b/app/lookup/[domain]/(overview)/_components/IpOverviewItem.tsx index 855c9c5e..1ea388ff 100644 --- a/app/lookup/[domain]/(overview)/_components/IpOverviewItem.tsx +++ b/app/lookup/[domain]/(overview)/_components/IpOverviewItem.tsx @@ -21,8 +21,8 @@ const IpOverviewItem: FC = ({ value, subvalue, }): ReactElement => { - const [isOpen, setOpen] = useState(false); - const open = useCallback(() => setOpen(true), [setOpen]); + const [isOpen, setIsOpen] = useState(false); + const open = useCallback(() => setIsOpen(true), [setIsOpen]); return ( <> @@ -47,7 +47,7 @@ const IpOverviewItem: FC = ({ - + ); }; diff --git a/app/lookup/[domain]/(overview)/_components/TechnologiesDetailsModal.tsx b/app/lookup/[domain]/(overview)/_components/TechnologiesDetailsModal.tsx index 9205f0d2..a96ab5af 100644 --- a/app/lookup/[domain]/(overview)/_components/TechnologiesDetailsModal.tsx +++ b/app/lookup/[domain]/(overview)/_components/TechnologiesDetailsModal.tsx @@ -76,8 +76,8 @@ const TechnologiesDetailsModal: FC = ({ = async ({ = async ({ } return ( - <> -
- {whoisResult && ( - <> - - - - )} - - {whoisResult && ( - - )} - - {whoisResult && } - -
- +
+ {whoisResult && ( + <> + + + + )} + + {whoisResult && ( + + )} + + {whoisResult && } + +
); }; diff --git a/app/lookup/[domain]/certs/error.tsx b/app/lookup/[domain]/certs/error.tsx index 142ee75c..36dce630 100644 --- a/app/lookup/[domain]/certs/error.tsx +++ b/app/lookup/[domain]/certs/error.tsx @@ -4,7 +4,6 @@ import { type FC, ReactElement, useEffect } from 'react'; type CertsErrorProps = { error: Error & { digest?: string }; - reset: () => void; }; const CertsError: FC = ({ error }): ReactElement => { diff --git a/app/lookup/[domain]/dns/_components/IpDetailsModal.tsx b/app/lookup/[domain]/dns/_components/IpDetailsModal.tsx index fa5aa514..115519a1 100644 --- a/app/lookup/[domain]/dns/_components/IpDetailsModal.tsx +++ b/app/lookup/[domain]/dns/_components/IpDetailsModal.tsx @@ -25,7 +25,6 @@ import { DrawerFooter, DrawerHeader, DrawerTitle, - DrawerTrigger, } from '@/components/ui/drawer'; import { Spinner } from '@/components/ui/spinner'; import { Table, TableBody, TableCell, TableRow } from '@/components/ui/table'; diff --git a/app/lookup/[domain]/dns/_components/IpLink.tsx b/app/lookup/[domain]/dns/_components/IpLink.tsx index cadde02e..447a5507 100644 --- a/app/lookup/[domain]/dns/_components/IpLink.tsx +++ b/app/lookup/[domain]/dns/_components/IpLink.tsx @@ -17,8 +17,8 @@ type IpLinkProps = { }; const IpLink: FC = ({ value }): ReactElement => { - const [isOpen, setOpen] = useState(false); - const open = useCallback(() => setOpen(true), [setOpen]); + const [isOpen, setIsOpen] = useState(false); + const open = useCallback(() => setIsOpen(true), [setIsOpen]); return ( <> @@ -38,7 +38,7 @@ const IpLink: FC = ({ value }): ReactElement => { - + ); }; diff --git a/app/lookup/[domain]/dns/error.tsx b/app/lookup/[domain]/dns/error.tsx index d7aff48b..b4b41429 100644 --- a/app/lookup/[domain]/dns/error.tsx +++ b/app/lookup/[domain]/dns/error.tsx @@ -4,7 +4,6 @@ import { type FC, ReactElement, useEffect } from 'react'; type DNSErrorProps = { error: Error & { digest?: string }; - reset: () => void; }; const DNSError: FC = ({ error }): ReactElement => { diff --git a/app/lookup/[domain]/error.tsx b/app/lookup/[domain]/error.tsx index 7cbe12c7..52dba220 100644 --- a/app/lookup/[domain]/error.tsx +++ b/app/lookup/[domain]/error.tsx @@ -4,7 +4,6 @@ import { type FC, ReactElement, useEffect } from 'react'; type DomainErrorProps = { error: Error & { digest?: string }; - reset: () => void; }; const DomainError: FC = ({ error }): ReactElement => { diff --git a/app/lookup/[domain]/whois/error.tsx b/app/lookup/[domain]/whois/error.tsx index 49abb6d1..90e4e736 100644 --- a/app/lookup/[domain]/whois/error.tsx +++ b/app/lookup/[domain]/whois/error.tsx @@ -4,7 +4,6 @@ import { type FC, ReactElement, useEffect } from 'react'; type WhoisErrorProps = { error: Error & { digest?: string }; - reset: () => void; }; const WhoisError: FC = ({ error }): ReactElement => { diff --git a/components/BookmarkletLink.tsx b/components/BookmarkletLink.tsx index dd87e031..81034721 100644 --- a/components/BookmarkletLink.tsx +++ b/components/BookmarkletLink.tsx @@ -21,7 +21,7 @@ import { const BookmarkletLink: FC = (): ReactElement => { const [target, setTarget] = useState(''); - const [isOpen, setOpen] = useState(false); + const [isOpen, setIsOpen] = useState(false); useEffect(() => { const rawScript = ` @@ -44,9 +44,9 @@ const BookmarkletLink: FC = (): ReactElement => { const clickHandler = useCallback>( (event) => { event.preventDefault(); - setOpen(true); + setIsOpen(true); }, - [setOpen] + [setIsOpen] ); return ( @@ -65,7 +65,7 @@ const BookmarkletLink: FC = (): ReactElement => { )} - + Installation required diff --git a/components/ExternalFavicon.tsx b/components/ExternalFavicon.tsx index 2677c446..defc49b8 100644 --- a/components/ExternalFavicon.tsx +++ b/components/ExternalFavicon.tsx @@ -1,7 +1,7 @@ 'use client'; import Image from 'next/image'; -import { type FC, ReactElement, useCallback, useState } from 'react'; +import { type FC, ReactElement } from 'react'; type ExternalFavicon = { url: string; diff --git a/lib/resolvers/AuthoritativeResolver.ts b/lib/resolvers/AuthoritativeResolver.ts index d98204ae..60724a23 100644 --- a/lib/resolvers/AuthoritativeResolver.ts +++ b/lib/resolvers/AuthoritativeResolver.ts @@ -139,7 +139,7 @@ class AuthoritativeResolver extends DnsResolver { const response = await this.requestLoader.load({ domain, type: recordType, - nameserver: nameserver || rootServers[0], // TODO Use fallback nameservers + nameserver: nameserver ?? rootServers[0], // TODO Use fallback nameservers }); if (response.answers?.length) {