Fix some problems with class and className
This commit is contained in:
@ -9,6 +9,7 @@ export default function List({
|
||||
clickable,
|
||||
divider,
|
||||
className,
|
||||
class: c,
|
||||
children,
|
||||
...props
|
||||
}: JSX.HTMLAttributes<HTMLUListElement> & IListProps) {
|
||||
@ -18,7 +19,7 @@ export default function List({
|
||||
if (divider) cl += "ht-list-divider ";
|
||||
|
||||
return (
|
||||
<ul className={cl + (className || "") + (props.class || "")} {...props}>
|
||||
<ul className={cl + (className || "") + c} {...props}>
|
||||
{children}
|
||||
</ul>
|
||||
);
|
||||
|
Reference in New Issue
Block a user