Skip to content

Commit

Permalink
refactor(coral): Replace depracted GridItem in EnvironmentStatus (#1925)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Anderson <[email protected]>
Co-authored-by: Mirjam Aulbach <[email protected]>
  • Loading branch information
Mathieu Anderson and programmiri authored Oct 26, 2023
1 parent a8cc272 commit 2f7da4f
Showing 1 changed file with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
Button,
Grid,
GridItem,
Skeleton,
StatusChip,
Typography,
Expand Down Expand Up @@ -68,12 +67,12 @@ const EnvironmentStatus = ({
colGap="3"
style={{ gridTemplateColumns: "100px 280px 20px" }}
>
<GridItem>
<Grid.Item>
<StatusChip dense status="neutral" text="Refreshing..." />
</GridItem>
<GridItem>
</Grid.Item>
<Grid.Item>
<Skeleton width={275} height={20} />
</GridItem>
</Grid.Item>
<Button.Icon
icon={loading}
onClick={() => setShouldUpdateStatus(true)}
Expand All @@ -93,15 +92,15 @@ const EnvironmentStatus = ({
colGap="3"
style={{ gridTemplateColumns: "100px 280px 20px" }}
>
<GridItem>
<Grid.Item>
<StatusChip dense status="danger" text="Not working" />
</GridItem>
<GridItem>
</Grid.Item>
<Grid.Item>
<Typography.Small>
Last update:{" "}
{updateTime === "Unknown" ? updateTime : `${updateTime} UTC`}
</Typography.Small>
</GridItem>
</Grid.Item>
<Button.Icon
icon={refresh}
onClick={() => setShouldUpdateStatus(true)}
Expand All @@ -119,15 +118,15 @@ const EnvironmentStatus = ({
colGap="3"
style={{ gridTemplateColumns: "100px 280px 20px" }}
>
<GridItem>
<Grid.Item>
<StatusChip dense status="success" text="Working" />
</GridItem>
<GridItem>
</Grid.Item>
<Grid.Item>
<Typography.Small>
Last update:{" "}
{updateTime === "Unknown" ? updateTime : `${updateTime} UTC`}
</Typography.Small>
</GridItem>
</Grid.Item>
<Button.Icon
icon={refresh}
onClick={() => setShouldUpdateStatus(true)}
Expand All @@ -145,15 +144,15 @@ const EnvironmentStatus = ({
colGap="3"
style={{ gridTemplateColumns: "100px 280px 20px" }}
>
<GridItem>
<Grid.Item>
<StatusChip dense status="neutral" text="Unknown" />
</GridItem>
<GridItem>
</Grid.Item>
<Grid.Item>
<Typography.Small>
Last update:{" "}
{updateTime === "Unknown" ? updateTime : `${updateTime} UTC`}
</Typography.Small>
</GridItem>
</Grid.Item>
<Button.Icon
icon={refresh}
onClick={() => setShouldUpdateStatus(true)}
Expand Down

0 comments on commit 2f7da4f

Please sign in to comment.