From fd0edeca3d6f84fff85878dedf1fbf8426a91556 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 1 Sep 2020 02:51:03 -0700 Subject: [PATCH] use simpler nc/np tags in the list --- src/app/WardrobePage/Item.js | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/src/app/WardrobePage/Item.js b/src/app/WardrobePage/Item.js index e815d4f..2e48fca 100644 --- a/src/app/WardrobePage/Item.js +++ b/src/app/WardrobePage/Item.js @@ -74,14 +74,18 @@ function Item({ {item.name} - + + {item.isNc ? ( + NC + ) : ( + NP + )} {shouldShowZones && occupiedZoneLabels.map((zoneLabel) => ( {getZoneShorthand(zoneLabel)} @@ -229,17 +233,17 @@ function ItemContainer({ children, isFocusable = true }) { * ItemThumbnail shows a small preview image for the item, including some * hover/focus and worn/unworn states. */ -function ItemThumbnail({ src, isWorn, isNc }) { +function ItemThumbnail({ src, isWorn }) { const theme = useTheme(); const colorMode = useColorMode(); const borderColor = useColorModeValue( - isNc ? theme.colors.purple["700"] : theme.colors.green["700"], + theme.colors.green["700"], "transparent" ); const focusBorderColor = useColorModeValue( - isNc ? theme.colors.purple["600"] : theme.colors.green["600"], + theme.colors.green["600"], "transparent" ); @@ -286,21 +290,6 @@ function ItemThumbnail({ src, isWorn, isNc }) { > - {isNc && ( - - NC - - )} ); }