Switch all classNames helpers to clsx

This commit is contained in:
2024-05-09 02:29:44 -05:00
parent 47bb9cb7f3
commit 49832cf8e7
4 changed files with 12 additions and 20 deletions

View File

@@ -30,14 +30,6 @@ export function truncated(input: string, maxLength: number, ellipsis = "...") {
);
}
/**
* A helper method for combining strings of classes in React.
* @param classes
*/
export function classNames(...classes: (string | null | undefined)[]) {
return classes.filter(Boolean).join(" ");
}
export function preventDefault(event: SyntheticEvent | Event) {
event.preventDefault();
}