fix stray console warnings

Some unused vars, and some missing React keys!
This commit is contained in:
Emi Matchu 2020-09-01 17:20:08 -07:00
parent 6d968cc385
commit 900f055b1b

View file

@ -9,7 +9,6 @@ import {
Skeleton, Skeleton,
Tooltip, Tooltip,
Wrap, Wrap,
useColorMode,
useColorModeValue, useColorModeValue,
useTheme, useTheme,
} from "@chakra-ui/core"; } from "@chakra-ui/core";
@ -94,10 +93,18 @@ function Item({
</ItemBadgeTooltip> </ItemBadgeTooltip>
)} )}
{occupiedZoneLabels.map((zoneLabel) => ( {occupiedZoneLabels.map((zoneLabel) => (
<ZoneBadge variant="occupies" zoneLabel={zoneLabel} /> <ZoneBadge
key={zoneLabel}
variant="occupies"
zoneLabel={zoneLabel}
/>
))} ))}
{restrictedZoneLabels.map((zoneLabel) => ( {restrictedZoneLabels.map((zoneLabel) => (
<ZoneBadge variant="restricts" zoneLabel={zoneLabel} /> <ZoneBadge
key={zoneLabel}
variant="restricts"
zoneLabel={zoneLabel}
/>
))} ))}
</Wrap> </Wrap>
</Box> </Box>
@ -221,7 +228,6 @@ function ItemContainer({ children, isDisabled = false }) {
*/ */
function ItemThumbnail({ src, isWorn, isDisabled }) { function ItemThumbnail({ src, isWorn, isDisabled }) {
const theme = useTheme(); const theme = useTheme();
const colorMode = useColorMode();
const borderColor = useColorModeValue( const borderColor = useColorModeValue(
theme.colors.green["700"], theme.colors.green["700"],