Skip to content

Commit

Permalink
Merge pull request #188 from Cognifide/bugfix/service-check-styling
Browse files Browse the repository at this point in the history
Service Check widget styling
  • Loading branch information
Southeaven authored Jan 3, 2020
2 parents d0ffe09 + 2506fcc commit eaae4df
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions cogboard-webapp/src/components/widgets/types/ServiceCheckWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,19 @@ const ServiceCheckWidget = ({
return (
<>
{errorStatus && <Caption>{statusMessage}</Caption>}
<Caption>
<WidgetButton href={url}>
{!statusCode ? (
<Loader text="Pending update" size={20} />
) : (
statusCodeMessage
)}
<StyledOpenInNewIcon />
</WidgetButton>
</Caption>
<PopoverWithControls
title={`Response: ${bodyMessage}`}
body={body}
withCopy={true}
/>
<WidgetButton href={url}>
{!statusCode ? (
<Loader text="Pending update" size={20} />
) : (
statusCodeMessage
)}
<StyledOpenInNewIcon />
</WidgetButton>
</>
);
};
Expand Down

0 comments on commit eaae4df

Please sign in to comment.