Inventory updates

This commit is contained in:
Bill 2021-05-04 18:40:29 -04:00
parent ce93b9744b
commit 1c76bab7b4
5 changed files with 11 additions and 11 deletions

View File

@ -8,10 +8,10 @@ export const InventoryActiveBadgeResultsView: FC<InventoryActiveBadgeResultsView
return (
<div className="row row-cols-3 align-content-start g-0">
{ (badges && badges.length && badges.map((code, index) =>
{ badges && (badges.length > 0) && badges.map((code, index) =>
{
return <InventoryBadgeItemView key={ index } badge={ code } />
})) || null }
}) }
</div>
);
}

View File

@ -8,12 +8,12 @@ export const InventoryBadgeResultsView: FC<InventoryBadgeResultsViewProps> = pro
return (
<div className="row row-cols-5 align-content-start g-0 badge-item-container">
{ (badges && badges.length && badges.map((code, index) =>
{ badges && (badges.length > 0) && badges.map((code, index) =>
{
if(activeBadges.indexOf(code) >= 0) return null;
return <InventoryBadgeItemView key={ index } badge={ code } />
})) || null }
}) }
</div>
);
}

View File

@ -8,10 +8,10 @@ export const InventoryBotResultsView: FC<InventoryBotResultsViewProps> = props =
return (
<div className="row row-cols-5 align-content-start g-0 bot-item-container">
{ (botItems && botItems.length && botItems.map((item, index) =>
{ botItems && (botItems.length > 0) && botItems.map((item, index) =>
{
return <InventoryBotItemView key={ index } botItem={ item } />
})) || null }
}) }
</div>
);
}

View File

@ -7,11 +7,11 @@ export const InventoryFurnitureResultsView: FC<InventoryFurnitureResultsViewProp
const { groupItems = [] } = props;
return (
<div className="row row-cols-5 align-content-start g-0 fruni-item-container">
{ (groupItems && groupItems.length && groupItems.map((item, index) =>
<div className="row row-cols-5 align-content-start g-0 furni-item-container">
{ groupItems && (groupItems.length > 0) && groupItems.map((item, index) =>
{
return <InventoryFurnitureItemView key={ index } groupItem={ item } />
})) || null }
}) }
</div>
);
}

View File

@ -8,10 +8,10 @@ export const InventoryPetResultsView: FC<InventoryPetResultsViewProps> = props =
return (
<div className="row row-cols-5 align-content-start g-0 pet-item-container">
{ (petItems && petItems.length && petItems.map((item, index) =>
{ petItems && (petItems.length > 0) && petItems.map((item, index) =>
{
return <InventoryPetItemView key={ index } petItem={ item } />
})) || null }
}) }
</div>
);
}