refactor: Fix undefined className in ListItem

This commit is contained in:
wsw 2023-05-25 01:13:19 +08:00
parent bb3f6ee086
commit 96d2f05eb7

View File

@ -42,7 +42,7 @@ export function ListItem(props: {
className?: string;
}) {
return (
<div className={styles["list-item"] + ` ${props.className}`}>
<div className={styles["list-item"] + ` ${props.className || ""}`}>
<div className={styles["list-header"]}>
{props.icon && <div className={styles["list-icon"]}>{props.icon}</div>}
<div className={styles["list-item-title"]}>