Preview + save UI for bulk-add tool
still not wired up tho!
This commit is contained in:
parent
67245d6f70
commit
c0e70b4c62
1 changed files with 18 additions and 7 deletions
|
@ -261,13 +261,24 @@ function AllItemLayersSupportModalContent({ item, bulkAddProposal }) {
|
|||
});
|
||||
|
||||
return (
|
||||
<Wrap justify="center" spacing="4">
|
||||
{itemAppearances.map((itemAppearance) => (
|
||||
<WrapItem key={itemAppearance.id}>
|
||||
<ItemAppearanceCard item={item} itemAppearance={itemAppearance} />
|
||||
</WrapItem>
|
||||
))}
|
||||
</Wrap>
|
||||
<Box>
|
||||
{bulkAddProposalData && (
|
||||
<Flex align="center" marginBottom="6">
|
||||
<Heading size="md">Previewing bulk-add changes</Heading>
|
||||
<Box flex="1 0 auto" width="4" />
|
||||
<Button size="sm" colorScheme="green">
|
||||
Save {bulkAddProposalData.layersToAdd.length} changes
|
||||
</Button>
|
||||
</Flex>
|
||||
)}
|
||||
<Wrap justify="center" spacing="4">
|
||||
{itemAppearances.map((itemAppearance) => (
|
||||
<WrapItem key={itemAppearance.id}>
|
||||
<ItemAppearanceCard item={item} itemAppearance={itemAppearance} />
|
||||
</WrapItem>
|
||||
))}
|
||||
</Wrap>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue