mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 06:40:50 +01:00
Inventory updates
This commit is contained in:
parent
ce93b9744b
commit
1c76bab7b4
@ -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>
|
||||
);
|
||||
}
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user