Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonStoltz committed Apr 8, 2021
1 parent d3fbe43 commit 8bbf023
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { DraggableProvidedDragHandleProps } from 'react-beautiful-dnd';

import { shallow, ShallowWrapper } from 'enzyme';

import { EuiButtonIcon, EuiPanel } from '@elastic/eui';
import { EuiButtonIcon, EuiPanel, EuiButtonIconColor } from '@elastic/eui';

import { SchemaTypes } from '../../../shared/types';

Expand Down Expand Up @@ -83,13 +83,13 @@ describe('Result', () => {
title: 'Hide',
onClick: jest.fn(),
iconType: 'eyeClosed',
iconColor: 'danger',
iconColor: 'danger' as EuiButtonIconColor,
},
{
title: 'Bookmark',
onClick: jest.fn(),
iconType: 'starFilled',
iconColor: '',
iconColor: undefined,
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ interface Props {
isMetaEngine: boolean;
resultMeta: ResultMeta;
actions?: React.ReactNode;
shouldLinkToDetailPage: boolean;
shouldLinkToDetailPage?: boolean;
}

export const ResultHeader: React.FC<Props> = ({
showScore,
resultMeta,
isMetaEngine,
actions,
shouldLinkToDetailPage,
shouldLinkToDetailPage = false,
}) => {
const documentLink = generateEncodedPath(ENGINE_DOCUMENT_DETAIL_PATH, {
engineName: resultMeta.engine,
Expand All @@ -49,7 +49,6 @@ export const ResultHeader: React.FC<Props> = ({
type="id"
/>
</EuiFlexItem>
{/* Score */}
{showScore && (
<EuiFlexItem grow={false}>
<ResultHeaderItem
Expand Down

0 comments on commit 8bbf023

Please sign in to comment.