Skip to content

Commit

Permalink
Fix imports and types
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Dec 16, 2019
1 parent c731589 commit be1e034
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/fleet/public/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
export { useDebounce } from './use_debounce';
export { useInput } from './use_input';
export { useLibs, LibsContext } from './use_libs';
export { usePagination } from './use_pagination';
export { usePagination, Pagination } from './use_pagination';
export { useRequest, sendRequest } from './use_request';
export { WithUrlState, URLStateProps } from './with_url_state';
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/fleet/public/hooks/use_request.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const useRequest = (config: UseRequestConfig) => {
};

export const sendRequest = (
httpClient,
httpClient: any,
config: SendRequestConfig
): Promise<SendRequestResponse> => {
return _sendRequest(httpClient, config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
ReturnTypeDelete,
} from '../../common/return_types';
import { RestAPIAdapter } from './adapters/rest_api/adapter_types';
import { Pagination } from '../hooks/use_pagination';
import { EnrollmentApiKey } from '../../common/types/domain_data';
import { Pagination } from '../hooks';

export class EnrollmentApiKeyLib {
constructor(private readonly rest: RestAPIAdapter) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
EuiFlexItem,
EuiTitle,
} from '@elastic/eui';

import { i18n } from '@kbn/i18n';
import { FormattedMessage, FormattedTime } from '@kbn/i18n/react';
import { AgentEvent, Agent } from '../../../../common/types/domain_data';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import {
import { i18n } from '@kbn/i18n';
import { Agent } from '../../../../common/types/domain_data';
import { ConnectedLink, AgentHealth, AgentUnenrollProvider } from '../../../components';
import { AgentMetadataFlyout } from './metadata_flyout';
import { useAgentRefresh } from '../hooks';
import { AgentMetadataFlyout } from './metadata_flyout';

const Item: React.FC<{ label: string }> = ({ label, children }) => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import {
import { i18n } from '@kbn/i18n';
import { AxiosError } from 'axios';
import { Agent } from '../../../../common/types/domain_data';
import { useLibs, useAgentRefresh, useInput } from '../../../hooks/use_libs';
import { useLibs, useInput } from '../../../hooks';
import { useAgentRefresh } from '../hooks';

function useAddMetadataForm(agent: Agent, done: () => void) {
const libs = useLibs();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import {
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
import { useInput } from '../../../../hooks/use_input';
import { useLibs } from '../../../../hooks/use_libs';
import { useInput, useLibs } from '../../../../hooks';
import { usePolicies } from './hooks';

export const CreateApiKeyForm: React.FC<{ onChange: () => void }> = ({ onChange }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
*/

import { useEffect, useState } from 'react';
import { useLibs } from '../../../../hooks/use_libs';
import { Pagination } from '../../../../hooks/use_pagination';
import { useLibs, Pagination } from '../../../../hooks';
import { ReturnTypeList, ReturnTypeGet } from '../../../../../common/return_types';
import { EnrollmentApiKey } from '../../../../../common/types/domain_data';
import { Policy } from '../../../../../common/types/domain_data';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import React, { useState } from 'react';
import { EuiBasicTable, EuiButtonEmpty, EuiSpacer, EuiPopover } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { i18n } from '@kbn/i18n';
import { useEnrollmentApiKeys, useEnrollmentApiKey } from './hooks';
import { EnrollmentApiKey } from '../../../../../common/types/domain_data';
import { useLibs, usePagination } from '../../../../hooks';
import { useEnrollmentApiKeys, useEnrollmentApiKey } from './hooks';
import { ConfirmDeleteModal } from './confirm_delete_modal';
import { CreateApiKeyForm } from './create_api_key_form';

Expand Down

0 comments on commit be1e034

Please sign in to comment.