mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-06 21:16:06 -06:00
Add proper isLoading implementation/spinning icon, detectedType prop stub
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
CheckIcon,
|
||||
ChevronUpDownIcon,
|
||||
MagnifyingGlassIcon,
|
||||
ArrowPathIcon,
|
||||
} from "@heroicons/react/20/solid";
|
||||
import { Listbox, Transition } from "@headlessui/react";
|
||||
import clsx from "clsx";
|
||||
@@ -89,10 +90,17 @@ const LookupInput: FunctionComponent<LookupInputProps> = ({
|
||||
const searchIcon = (
|
||||
<>
|
||||
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
|
||||
<MagnifyingGlassIcon
|
||||
className="h-5 w-5 text-zinc-400"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
{isLoading ? (
|
||||
<ArrowPathIcon
|
||||
className="h-5 w-5 text-zinc-400 animate-spin"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
) : (
|
||||
<MagnifyingGlassIcon
|
||||
className="h-5 w-5 text-zinc-400"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user