diff --git a/src/components/common/Property.tsx b/src/components/common/Property.tsx index f0028f3..50bc7be 100644 --- a/src/components/common/Property.tsx +++ b/src/components/common/Property.tsx @@ -1,6 +1,6 @@ import type { FunctionComponent, ReactFragment, ReactNode } from "react"; import React from "react"; -import { classNames } from "@/helpers"; +import clsx from "clsx"; type PropertyProps = { title: string | ReactNode | ReactFragment; @@ -17,8 +17,8 @@ const Property: FunctionComponent = ({ }) => { return ( <> -
{title}:
-
{children}
+
{title}:
+
{children}
); }; diff --git a/src/components/form/LookupInput.tsx b/src/components/form/LookupInput.tsx index 75eb5ae..a2998aa 100644 --- a/src/components/form/LookupInput.tsx +++ b/src/components/form/LookupInput.tsx @@ -1,15 +1,16 @@ import { useForm } from "react-hook-form"; import type { FunctionComponent } from "react"; import { Fragment, useState } from "react"; -import { classNames, onPromise, preventDefault } from "@/helpers"; +import { onPromise, preventDefault } from "@/helpers"; import type { SubmitProps, TargetType } from "@/types"; -import { ObjectType } from "@/types"; +import type { ObjectType } from "@/types"; import { CheckIcon, ChevronUpDownIcon, MagnifyingGlassIcon, } from "@heroicons/react/20/solid"; import { Listbox, Transition } from "@headlessui/react"; +import clsx from "clsx"; type LookupInputProps = { isLoading?: boolean; @@ -84,7 +85,7 @@ const LookupInput: FunctionComponent = ({ /> = ({ }} disabled={isLoading} > -
+
= ({ leaveTo="opacity-0" > = ({ - classNames( + clsx( "relative cursor-default select-none py-2 pl-10 pr-4", active ? "bg-zinc-800 text-zinc-300" : null ) @@ -161,7 +162,7 @@ const LookupInput: FunctionComponent = ({ {({ selected }) => ( <> void;