Skip to content

Commit 3821ffc

Browse files
refactor: ♻️ no undefined in className (#628)
1 parent a1ea63e commit 3821ffc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/select-panel/default-item.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DefaultItemRenderer = ({
1515
onClick,
1616
disabled,
1717
}: IDefaultItemRendererProps) => (
18-
<div className={`item-renderer ${disabled && "disabled"}`}>
18+
<div className={`item-renderer ${disabled ? "disabled" : ""}`}>
1919
<input
2020
type="checkbox"
2121
onChange={onClick}

src/select-panel/select-item.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const SelectItem = ({
4949

5050
return (
5151
<label
52-
className={`select-item ${checked && "selected"}`}
52+
className={`select-item ${checked ? "selected" : ""}`}
5353
role="option"
5454
aria-selected={checked}
5555
tabIndex={tabIndex}

0 commit comments

Comments
 (0)