mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-16 04:12:56 -06:00
Switch all classNames helpers to clsx
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user