Skip to content

Commit

Permalink
Fixes type script errs
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Jan 30, 2021
1 parent f872377 commit bacc288
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions x-pack/plugins/monitoring/public/alerts/lib/alerts_toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export interface EnableAlertResponse {
}

const showTlsAndEncryptionError = () => {
const { docLinks } = Legacy.shims.docLinks;
const settingsUrl = docLinks.links.alerting.generalSettings;
const settingsUrl = Legacy.shims.docLinks.links.alerting.generalSettings;

Legacy.shims.toastNotifications.addWarning({
title: toMountPoint(
Expand Down Expand Up @@ -47,8 +46,7 @@ const showTlsAndEncryptionError = () => {
};

const showUnableToDisableWatcherClusterAlertsError = () => {
const { docLinks } = Legacy.shims.docLinks;
const settingsUrl = docLinks.links.alerting.generalSettings;
const settingsUrl = Legacy.shims.docLinks.links.alerting.generalSettings;

Legacy.shims.toastNotifications.addWarning({
title: toMountPoint(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ const learnMoreLabel = () =>
});

const showIfLegacyOnlyIndices = () => {
const { docLinks } = Legacy.shims.docLinks;
const blogUrl = docLinks.links.monitoring.metricbeatBlog;
const blogUrl = Legacy.shims.docLinks.links.monitoring.metricbeatBlog;
const toast = Legacy.shims.toastNotifications.addWarning({
title: toMountPoint(
<FormattedMessage
Expand Down Expand Up @@ -65,8 +64,7 @@ const showIfLegacyOnlyIndices = () => {
};

const showIfLegacyAndMetricbeatIndices = () => {
const { docLinks } = Legacy.shims.docLinks;
const blogUrl = docLinks.links.monitoring.metricbeatBlog;
const blogUrl = Legacy.shims.docLinks.links.monitoring.metricbeatBlog;
const toast = Legacy.shims.toastNotifications.addWarning({
title: toMountPoint(
<FormattedMessage
Expand Down

0 comments on commit bacc288

Please sign in to comment.