Fix TS errors
This commit is contained in:
@@ -4,7 +4,13 @@
|
||||
function classNames(...classes: (string | false | null | undefined)[]) {
|
||||
return classes.filter(Boolean).join(" ");
|
||||
}
|
||||
function resolveClass({ active, disabled }) {
|
||||
function resolveClass({
|
||||
active,
|
||||
disabled,
|
||||
}: {
|
||||
active: boolean;
|
||||
disabled: boolean;
|
||||
}) {
|
||||
return classNames(
|
||||
"flex justify-between w-full px-4 py-2 text-sm leading-5 text-left",
|
||||
active ? "bg-gray-100 text-gray-900" : "text-gray-700",
|
||||
|
||||
Reference in New Issue
Block a user