style(striker-ui): fix styling to make build succeed

main
Tsu-ba-me 3 years ago
parent 34f7ece2f9
commit 2808fdd123
  1. 13
      striker-ui/components/Hosts/AnvilHost.tsx
  2. 18
      striker-ui/components/Resource/ResourceVolumes.tsx

@ -73,8 +73,7 @@ const AnvilHost = ({
return (
<Box className={classes.root}>
{hosts &&
hosts.map(
(host): JSX.Element => {
hosts.map((host): JSX.Element => {
return (
<InnerPanel key={host.host_uuid}>
<PanelHeader>
@ -104,13 +103,10 @@ const AnvilHost = ({
<Switch
checked={host.state === 'online'}
onChange={() =>
putFetch(
`${process.env.NEXT_PUBLIC_API_URL}/set_power`,
{
putFetch(`${process.env.NEXT_PUBLIC_API_URL}/set_power`, {
host_uuid: host.host_uuid,
is_on: !(host.state === 'online'),
},
)
})
}
/>
</Box>
@ -154,8 +150,7 @@ const AnvilHost = ({
)}
</InnerPanel>
);
},
)}
})}
</Box>
);
};

@ -78,8 +78,7 @@ const ResourceVolumes = ({
</Box>
</Box>
</PanelHeader>
{volume.connections.map(
(connection, index): JSX.Element => {
{volume.connections.map((connection, index): JSX.Element => {
return (
<>
<Box
@ -90,20 +89,14 @@ const ResourceVolumes = ({
>
<Box className={classes.decoratorBox}>
<Decorator
colour={selectDecorator(
connection.connection_state,
)}
colour={selectDecorator(connection.connection_state)}
/>
</Box>
<Box>
<Box display="flex" width="100%">
<BodyText
text={connection.targets[0].target_name}
/>
<BodyText text={connection.targets[0].target_name} />
<InsertLinkIcon style={{ color: DIVIDER }} />
<BodyText
text={connection.targets[1].target_name}
/>
<BodyText text={connection.targets[1].target_name} />
</Box>
<Box
display="flex"
@ -119,8 +112,7 @@ const ResourceVolumes = ({
) : null}
</>
);
},
)}
})}
</InnerPanel>
);
})}

Loading…
Cancel
Save