mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-09 00:08:07 -06:00
Make search icon clickable button
This commit is contained in:
@@ -109,7 +109,10 @@ const LookupInput: FunctionComponent<LookupInputProps> = ({
|
|||||||
|
|
||||||
const searchIcon = (
|
const searchIcon = (
|
||||||
<>
|
<>
|
||||||
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
|
<button type="submit" className={clsx({
|
||||||
|
"absolute inset-y-0 left-0 flex items-center pl-3": true,
|
||||||
|
"pointer-events-none": isLoading,
|
||||||
|
})}>
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
<ArrowPathIcon
|
<ArrowPathIcon
|
||||||
className="h-5 w-5 text-zinc-400 animate-spin"
|
className="h-5 w-5 text-zinc-400 animate-spin"
|
||||||
@@ -121,7 +124,7 @@ const LookupInput: FunctionComponent<LookupInputProps> = ({
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</button>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user