mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14: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 (
|
return (
|
||||||
<div className="row row-cols-3 align-content-start g-0">
|
<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 } />
|
return <InventoryBadgeItemView key={ index } badge={ code } />
|
||||||
})) || null }
|
}) }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -8,12 +8,12 @@ export const InventoryBadgeResultsView: FC<InventoryBadgeResultsViewProps> = pro
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="row row-cols-5 align-content-start g-0 badge-item-container">
|
<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;
|
if(activeBadges.indexOf(code) >= 0) return null;
|
||||||
|
|
||||||
return <InventoryBadgeItemView key={ index } badge={ code } />
|
return <InventoryBadgeItemView key={ index } badge={ code } />
|
||||||
})) || null }
|
}) }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,10 @@ export const InventoryBotResultsView: FC<InventoryBotResultsViewProps> = props =
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="row row-cols-5 align-content-start g-0 bot-item-container">
|
<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 } />
|
return <InventoryBotItemView key={ index } botItem={ item } />
|
||||||
})) || null }
|
}) }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -7,11 +7,11 @@ export const InventoryFurnitureResultsView: FC<InventoryFurnitureResultsViewProp
|
|||||||
const { groupItems = [] } = props;
|
const { groupItems = [] } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="row row-cols-5 align-content-start g-0 fruni-item-container">
|
<div className="row row-cols-5 align-content-start g-0 furni-item-container">
|
||||||
{ (groupItems && groupItems.length && groupItems.map((item, index) =>
|
{ groupItems && (groupItems.length > 0) && groupItems.map((item, index) =>
|
||||||
{
|
{
|
||||||
return <InventoryFurnitureItemView key={ index } groupItem={ item } />
|
return <InventoryFurnitureItemView key={ index } groupItem={ item } />
|
||||||
})) || null }
|
}) }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,10 @@ export const InventoryPetResultsView: FC<InventoryPetResultsViewProps> = props =
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="row row-cols-5 align-content-start g-0 pet-item-container">
|
<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 } />
|
return <InventoryPetItemView key={ index } petItem={ item } />
|
||||||
})) || null }
|
}) }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user