From ec0b80c0ca02ce8996932648650c4914013e838d Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 15 Sep 2020 04:31:27 -0700 Subject: [PATCH] add NC badges to modeling page --- src/app/ModelingPage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/ModelingPage.js b/src/app/ModelingPage.js index fc04d93..7145581 100644 --- a/src/app/ModelingPage.js +++ b/src/app/ModelingPage.js @@ -9,6 +9,7 @@ import { Heading1, Heading2, usePageTitle } from "./util"; import ItemCard, { ItemBadgeList, ItemCardList, + NcBadge, YouOwnThisBadge, } from "./components/ItemCard"; @@ -69,6 +70,7 @@ function ItemModelsSection() { id name thumbnailUrl + isNc createdAt } `); @@ -167,8 +169,9 @@ function ItemModelCard({ item, currentUserOwnsItem, ...props }) { function ItemModelBadges({ item, currentUserOwnsItem }) { return ( - {currentUserOwnsItem && } {itemIsNew(item) && } + {item.isNc && } + {currentUserOwnsItem && } {item.speciesThatNeedModels.map((species) => ( {species.name} ))}