|
@@ -25,15 +25,17 @@ function CalorieRow (props: CalorieRowProps) {
|
|
|
|
|
|
return (
|
|
return (
|
|
<div className={cx(styles.calorieRow, {[styles.selected]: isSelected})} {...{onClick}}>
|
|
<div className={cx(styles.calorieRow, {[styles.selected]: isSelected})} {...{onClick}}>
|
|
- <ItemActions {...{
|
|
|
|
- className: cx(
|
|
|
|
- styles.itemActions,
|
|
|
|
- {
|
|
|
|
- [styles.open]: isSelected
|
|
|
|
- }
|
|
|
|
- ),
|
|
|
|
- removeItem: () => removeItem(item)
|
|
|
|
- }} />
|
|
|
|
|
|
+ <div className={cx(
|
|
|
|
+ styles.itemActionsWrapper,
|
|
|
|
+ {
|
|
|
|
+ [styles.open]: isSelected
|
|
|
|
+ }
|
|
|
|
+ )}>
|
|
|
|
+ <ItemActions {...{
|
|
|
|
+ className: styles.itemActions,
|
|
|
|
+ removeItem: () => removeItem(item)
|
|
|
|
+ }} />
|
|
|
|
+ </div>
|
|
|
|
|
|
<div className={styles.itemValues}>
|
|
<div className={styles.itemValues}>
|
|
<div className={styles.title}>{item.title}</div>
|
|
<div className={styles.title}>{item.title}</div>
|