Skip to content

Commit

Permalink
remove search bar that's not working yet (#102550)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashokaditya authored Jun 18, 2021
1 parent 7e04e17 commit 6672baf
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import React, { memo, useCallback } from 'react';
import { EuiButton, EuiEmptyPrompt, EuiLoadingContent, EuiSpacer } from '@elastic/eui';
import { useDispatch } from 'react-redux';
import { LogEntry } from './components/log_entry';
import * as i18 from '../translations';
import { SearchBar } from '../../../../components/search_bar';
import { Immutable, ActivityLog } from '../../../../../../common/endpoint/types';
import { AsyncResourceState } from '../../../../state';
import { useEndpointSelector } from '../hooks';
Expand All @@ -32,8 +30,6 @@ export const EndpointActivityLog = memo(
const activityLogError = useEndpointSelector(getActivityLogError);
const dispatch = useDispatch<(a: EndpointAction) => void>();
const { page, pageSize } = useEndpointSelector(getActivityLogDataPaging);
// TODO
const onSearch = useCallback(() => {}, []);

const getActivityLog = useCallback(() => {
dispatch({
Expand All @@ -57,7 +53,6 @@ export const EndpointActivityLog = memo(
/>
) : (
<>
<SearchBar onSearch={onSearch} placeholder={i18.SEARCH_ACTIVITY_LOG} />
<EuiSpacer size="l" />
{activityLogLoading ? (
<EuiLoadingContent lines={3} />
Expand Down

0 comments on commit 6672baf

Please sign in to comment.