Skip to content

Commit

Permalink
updated imports in hooks, fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed Dec 9, 2020
1 parent b7d90f6 commit 07f33ad
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { useEffect } from 'react';
import _ from 'lodash';
import { EUI_MODAL_CANCEL_BUTTON } from '@elastic/eui';

import { useKibana } from '../../../../kibana_react/public';
import { useKibana } from '../../services/kibana_react';

import { DashboardStateManager } from '../dashboard_state_manager';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ import { useEffect, useState } from 'react';
import _ from 'lodash';
import { History } from 'history';

import { useKibana } from '../../../../kibana_react/public';
import { useKibana } from '../../services/kibana_react';
import {
ContainerOutput,
EmbeddableFactoryNotFoundError,
EmbeddableInput,
isErrorEmbeddable,
ViewMode,
} from '../../../../embeddable/public';
} from '../../services/embeddable';

import { DashboardStateManager } from '../dashboard_state_manager';
import { getDashboardContainerInput, getSearchSessionIdFromURL } from '../dashboard_app_functions';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ import { History } from 'history';
import _ from 'lodash';
import { map } from 'rxjs/operators';

import { createKbnUrlStateStorage, withNotifyOnErrors } from '../../../../kibana_utils/public';
import { useKibana } from '../../../../kibana_react/public';
import { createKbnUrlStateStorage, withNotifyOnErrors } from '../../services/kibana_utils';
import { useKibana } from '../../services/kibana_react';
import {
connectToQueryState,
esFilters,
QueryState,
syncQueryStateWithUrl,
} from '../../../../data/public';
import { SavedObject } from '../../../../saved_objects/public';
import type { TagDecoratedSavedObject } from '../../../../saved_objects_tagging_oss/public';
} from '../../services/data';
import { SavedObject } from '../../services/saved_objects';
import type { TagDecoratedSavedObject } from '../../services/saved_objects_tagging_oss';

import { DashboardSavedObject } from '../../saved_dashboards';
import { migrateLegacyQuery } from '../lib/migrate_legacy_query';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import { useEffect, useState } from 'react';
import { History } from 'history';
import _ from 'lodash';

import { useKibana } from '../../../../kibana_react/public';
import { useKibana } from '../../services/kibana_react';

import { DashboardConstants } from '../..';
import { DashboardSavedObject } from '../../saved_dashboards';
import { getDashboard60Warning } from '../../dashboard_strings';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { i18n } from '@kbn/i18n';

import { EuiComboBox } from '@elastic/eui';
import { SavedObjectsClientContract } from '../../../../core/public';
import { SavedObjectDashboard } from '../../../../plugins/dashboard/public';
import { DashboardSavedObject } from '../../../../plugins/dashboard/public';

export interface DashboardPickerProps {
onChange: (dashboard: { name: string; id: string } | null) => void;
Expand All @@ -48,7 +48,7 @@ export function DashboardPicker(props: DashboardPickerProps) {
setIsLoadingDashboards(true);
setDashboards([]);

const { savedObjects } = await savedObjectsClient.find<SavedObjectDashboard>({
const { savedObjects } = await savedObjectsClient.find<DashboardSavedObject>({
type: 'dashboard',
search: query ? `${query}*` : '',
searchFields: ['title'],
Expand Down

0 comments on commit 07f33ad

Please sign in to comment.