Fix some problems with class and className

This commit is contained in:
Fabian Stamm
2020-04-21 00:47:38 +02:00
parent 3833510262
commit 81f124378f
12 changed files with 50 additions and 42 deletions

View File

@ -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>
);