Add a delay to bulk image conversion loading state

Right, yeah, in prod this is way faster, so the loading indicator is a distraction!
This commit is contained in:
Emi Matchu 2021-05-25 05:49:47 -07:00
parent 5f1980241f
commit e829cc5525

View file

@ -389,12 +389,14 @@ function BulkImageConverter() {
/>
<Box gridArea="status" textAlign="right" justifySelf="end">
{loading ? (
<Flex alignItems="center" opacity="0.8">
<Spinner size="xs" marginRight="1.5" />
<Box fontSize="sm">
Found {outfitIds.length} outfit images, converting
</Box>
</Flex>
<Delay ms={1000}>
<Flex alignItems="center" opacity="0.8">
<Spinner size="xs" marginRight="1.5" />
<Box fontSize="sm">
Found {outfitIds.length} outfit images, converting
</Box>
</Flex>
</Delay>
) : error ? (
<ErrorMessage fontSize="sm">
Error loading outfits. Try again?