Skip to content

Commit

Permalink
Update Image Paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-miles committed Sep 10, 2024
1 parent 5a3b6aa commit 6a32a54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ItemsView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function ItemsView({view, items, setItems}) {
<h3 onClick={() => { toggleGroup(groupKey); }}>{groupValue.name}</h3>
{Object.entries(groupValue.items).map(([itemKey, itemValue]) => (
<div className={'item ' + (itemValue.isActive ? 'active' : '')} id={itemKey} key={itemKey} onClick={() => { toggleItem(groupKey,itemKey); }}>
<img src={'/images/' + itemKey + '.png'} />
<img src={'images/' + itemKey + '.png'} />
<span>{itemValue.name}</span>
</div>
))}
Expand Down
4 changes: 2 additions & 2 deletions src/ListView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function ListView({items, setItems, view}) {
</div>}
</div>
<div className="item">
<img src={'/images/' + itemKey + '.png'} />
<img src={'images/' + itemKey + '.png'} />
<div className="label">
{itemValue.hasOwnProperty('recipe') && <span className="yield">{ (itemValue.quantity * itemValue.recipe.yield) }</span>}
<span>{ itemValue.name }</span>
Expand All @@ -61,7 +61,7 @@ export default function ListView({items, setItems, view}) {
{itemValue.recipe.ingredients.map((ingredient) => (
<div className="ingredient" key={ingredient.id}>
<span className="quantity">{ (itemValue.quantity * ingredient.quantity) }</span>
<img src={'/images/' + ingredient.id + '.png'} />
<img src={'images/' + ingredient.id + '.png'} />
<span className="name">{ingredient.name}</span>
</div>
))}
Expand Down

0 comments on commit 6a32a54

Please sign in to comment.