Skip to content

Commit

Permalink
fix item displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Apr 4, 2024
1 parent 1f315e3 commit 979a5c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/player/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ function Player() {
return contents;
}
contents.push((
<TreeItem key={`${itemType}-item-${loadoutItem._id}`} itemId={loadoutItem._id} icon={itemDisplay.image} label={itemDisplay.label}>
<TreeItem key={`${itemType}-item-${loadoutItem._id}`} itemId={loadoutItem._id} slots={{icon: () => { return itemDisplay.image}}} label={itemDisplay.label}>
{getLoadoutContents(loadoutItem, itemType)}
</TreeItem>
));
Expand Down Expand Up @@ -776,7 +776,7 @@ function Player() {
itemLabel = slot;
}
contents.push((
<TreeItem key={`loadout-item-${loadoutItem._id}`} itemId={loadoutItem._id} icon={itemImage} label={itemLabel}>
<TreeItem key={`loadout-item-${loadoutItem._id}`} itemId={loadoutItem._id} slots={{icon: () => { return itemImage}}} label={itemLabel}>
{getLoadoutContents(loadoutItem)}
</TreeItem>
));
Expand Down Expand Up @@ -807,7 +807,7 @@ function Player() {
return (
<li key={itemData._id}>
<SimpleTreeView>
<TreeItem key={`loadout-item-${itemData._id}`} itemId={itemData._id} icon={itemImage} label={itemLabel}>
<TreeItem key={`loadout-item-${itemData._id}`} itemId={itemData._id} slots={{icon: () => { return itemImage}}} label={itemLabel}>
{getLoadoutContents(itemData, 'favorite')}
</TreeItem>
</SimpleTreeView>
Expand Down

0 comments on commit 979a5c9

Please sign in to comment.