Remove unneded ui/documentation_links import (#49886)

This commit is contained in:
Liza Katz 2019-11-06 13:49:01 -05:00 committed by GitHub
parent c4d1430372
commit 3d2b1203e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,6 @@ import {
import { InjectedIntl, injectI18n, FormattedMessage } from '@kbn/i18n/react';
import { debounce, compact, isEqual } from 'lodash';
import { documentationLinks } from 'ui/documentation_links';
import { Toast } from 'src/core/public';
import {
AutocompleteSuggestion,
@ -348,7 +347,7 @@ export class QueryBarInputUI extends Component<Props, State> {
suggestion.field.subType.nested &&
!this.services.storage.get('kibana.KQLNestedQuerySyntaxInfoOptOut')
) {
const notifications = this.services.notifications;
const { notifications, docLinks } = this.services;
const onKQLNestedQuerySyntaxInfoOptOut = (toast: Toast) => {
if (!this.services.storage) return;
@ -356,7 +355,7 @@ export class QueryBarInputUI extends Component<Props, State> {
notifications!.toasts.remove(toast);
};
if (notifications) {
if (notifications && docLinks) {
const toast = notifications.toasts.add({
title: this.props.intl.formatMessage({
id: 'data.query.queryBar.KQLNestedQuerySyntaxInfoTitle',
@ -372,7 +371,7 @@ export class QueryBarInputUI extends Component<Props, State> {
Learn more in our {link}."
values={{
link: (
<EuiLink href={documentationLinks.query.kueryQuerySyntax} target="_blank">
<EuiLink href={docLinks.links.query.kueryQuerySyntax} target="_blank">
<FormattedMessage
id="data.query.queryBar.KQLNestedQuerySyntaxInfoDocLinkText"
defaultMessage="docs"