From 2808fdd12361fc012849ccd05cdf6237224b8207 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 24 Aug 2021 17:23:16 -0400 Subject: [PATCH] style(striker-ui): fix styling to make build succeed --- striker-ui/components/Hosts/AnvilHost.tsx | 141 +++++++++--------- .../components/Resource/ResourceVolumes.tsx | 72 ++++----- 2 files changed, 100 insertions(+), 113 deletions(-) diff --git a/striker-ui/components/Hosts/AnvilHost.tsx b/striker-ui/components/Hosts/AnvilHost.tsx index 1d013707..b50e3038 100644 --- a/striker-ui/components/Hosts/AnvilHost.tsx +++ b/striker-ui/components/Hosts/AnvilHost.tsx @@ -73,89 +73,84 @@ const AnvilHost = ({ return ( {hosts && - hosts.map( - (host): JSX.Element => { - return ( - - - - - - - - - - - - c.toUpperCase(), - ) || 'Not Available' - } - /> - - - - - - - + hosts.map((host): JSX.Element => { + return ( + + + - - putFetch( - `${process.env.NEXT_PUBLIC_API_URL}/set_power`, - { - host_uuid: host.host_uuid, - is_on: !(host.state === 'online'), - }, - ) - } - /> + - - + + - - putFetch( - `${process.env.NEXT_PUBLIC_API_URL}/set_membership`, - { - host_uuid: host.host_uuid, - is_member: !(host.state === 'online'), - }, - ) + + c.toUpperCase(), + ) || 'Not Available' } /> - {host.state !== 'online' && host.state !== 'offline' && ( - <> - - - - + + + + + + + + putFetch(`${process.env.NEXT_PUBLIC_API_URL}/set_power`, { + host_uuid: host.host_uuid, + is_on: !(host.state === 'online'), + }) + } + /> + + + + + + + putFetch( + `${process.env.NEXT_PUBLIC_API_URL}/set_membership`, + { + host_uuid: host.host_uuid, + is_member: !(host.state === 'online'), + }, + ) + } + /> + + + {host.state !== 'online' && host.state !== 'offline' && ( + <> + + + - - - - + + + + - - )} - - ); - }, - )} + + + )} + + ); + })} ); }; diff --git a/striker-ui/components/Resource/ResourceVolumes.tsx b/striker-ui/components/Resource/ResourceVolumes.tsx index a7ee79b4..2903a723 100644 --- a/striker-ui/components/Resource/ResourceVolumes.tsx +++ b/striker-ui/components/Resource/ResourceVolumes.tsx @@ -78,49 +78,41 @@ const ResourceVolumes = ({ - {volume.connections.map( - (connection, index): JSX.Element => { - return ( - <> - - - + {volume.connections.map((connection, index): JSX.Element => { + return ( + <> + + + + + + + + + - - - - - - - - - + + - {volume.connections.length - 1 !== index ? ( - - ) : null} - - ); - }, - )} + + {volume.connections.length - 1 !== index ? ( + + ) : null} + + ); + })} ); })}