Add total count to /support/petAppearances

This commit is contained in:
Emi Matchu 2021-04-23 15:37:52 -07:00
parent 61636a0067
commit f223424cfa

View file

@ -89,12 +89,19 @@ function UnlabeledPetAppearancesList() {
}
return (
<Wrap>
<Wrap align="center">
{speciesColorPairs.map(({ species, color }) => (
<WrapItem key={`${species.id}-${color.id}`}>
<SpeciesColorEditorLink species={species} color={color} />
</WrapItem>
))}
<WrapItem>
{speciesColorPairs.length >= 10 && (
<Box fontSize="xs" fontStyle="italic" marginLeft="2">
(That's {speciesColorPairs.length} total, and fewer by the minute!)
</Box>
)}
</WrapItem>
</Wrap>
);
}