refactor: add condition to render divider

main
Josue 4 years ago
parent 57c891bfdf
commit bf93f5a5db
  1. 4
      striker-ui/components/Resource/ResourceVolumes.tsx

@ -79,7 +79,7 @@ const ResourceVolumes = ({
</Box>
</PanelHeader>
{volume.connections.map(
(connection): JSX.Element => {
(connection, index): JSX.Element => {
return (
<>
<Box
@ -114,7 +114,9 @@ const ResourceVolumes = ({
</Box>
</Box>
</Box>
{volume.connections.length - 1 !== index ? (
<Divider className={classes.divider} />
) : null}
</>
);
},

Loading…
Cancel
Save