Skip to content

Commit

Permalink
[Uptime] Added eui spacers around callout in expanded row (#51843)
Browse files Browse the repository at this point in the history
* added eui spacers around callout

* updated snaps
  • Loading branch information
shahzad31 authored Dec 5, 2019
1 parent bd3857a commit abaf009
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import React from 'react';
import { get } from 'lodash';
import { EuiCallOut } from '@elastic/eui';
import { EuiCallOut, EuiSpacer } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { Check } from '../../../../../common/graphql/types';
import { LocationLink } from './location_link';
Expand Down Expand Up @@ -46,13 +46,17 @@ export const MonitorStatusList = ({ checks }: MonitorStatusListProps) => {
<MonitorStatusRow locationNames={downChecks} status={DOWN} />
<MonitorStatusRow locationNames={absUpChecks} status={UP} />
{(downChecks.has(UNNAMED_LOCATION) || upChecks.has(UNNAMED_LOCATION)) && (
<EuiCallOut color="warning">
<FormattedMessage
id="xpack.uptime.monitorList.drawer.missingLocation"
defaultMessage="Some heartbeat instances do not have a location defined. {link} to your heartbeat configuration."
values={{ link: <LocationLink /> }}
/>
</EuiCallOut>
<>
<EuiSpacer size="s" />
<EuiCallOut color="warning">
<FormattedMessage
id="xpack.uptime.monitorList.drawer.missingLocation"
defaultMessage="Some heartbeat instances do not have a location defined. {link} to your heartbeat configuration."
values={{ link: <LocationLink /> }}
/>
</EuiCallOut>
<EuiSpacer />
</>
)}
</>
);
Expand Down

0 comments on commit abaf009

Please sign in to comment.