Skip to content

Commit

Permalink
Use list item value prop
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Feb 28, 2025
1 parent 0a07a50 commit 9a3f6be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1275,14 +1275,14 @@ function IncomeCategoryCells({ category, month, onBudgetAction }) {
}

function IncomeCategoryListItem({
category,
month,
style,
onEdit,
onBudgetAction,
...props
}) {
const listItemRef = useRef();
const { value: category } = props;

return (
<ListBoxItem
Expand Down Expand Up @@ -1617,7 +1617,7 @@ function IncomeCategoryList({
{category => (
<IncomeCategoryListItem
key={category.id}
category={category}
value={category}
month={month}
style={{
backgroundColor: monthUtils.isCurrentMonth(month)
Expand Down

0 comments on commit 9a3f6be

Please sign in to comment.