fix stray console warnings
Some unused vars, and some missing React keys!
This commit is contained in:
parent
6d968cc385
commit
900f055b1b
1 changed files with 10 additions and 4 deletions
|
@ -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"],
|
||||||
|
|
Loading…
Reference in a new issue