Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Apr 26, 2023
1 parent 3ec676f commit de05a62
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/cases/public/components/description/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import * as i18n from '../user_actions/translations';
import { useCasesContext } from '../cases_context/use_cases_context';
import { useLensDraftComment } from '../markdown_editor/plugins/lens/use_lens_draft_comment';
import { EditableMarkdown, ScrollableMarkdown } from '../markdown_editor';
import type { Case } from '../../containers/types';
import type { CaseUI } from '../../containers/types';
import type { OnUpdateFields } from '../case_view/types';
import { schema } from './schema';

const DESCRIPTION_ID = 'description';
export interface DescriptionProps {
caseData: Case;
caseData: CaseUI;
isLoadingDescription: boolean;
onUpdateField: ({ key, value, onSuccess, onError }: OnUpdateFields) => void;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import type { CaseResponse } from '@kbn/cases-plugin/common';
import type { Case } from '@kbn/cases-plugin/common';
import type { RuleResponse } from '../../../../common/detection_engine/rule_schema';
import { request } from './common';

Expand Down Expand Up @@ -69,7 +69,7 @@ export const loadRule = (includeResponseActions = true) =>
}).then((response) => response.body);

export const loadCase = (owner: string) =>
request<CaseResponse>({
request<Case>({
method: 'POST',
url: '/api/cases',
body: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { EuiButton, EuiContextMenuPanel, EuiContextMenuItem, EuiPopover } from '
import React, { useCallback, useMemo, useState } from 'react';
import { useDispatch } from 'react-redux';

import type { Case } from '@kbn/cases-plugin/common';
import type { CaseUI } from '@kbn/cases-plugin/common';
import { APP_ID, APP_UI_ID } from '../../../../../common/constants';
import { timelineSelectors } from '../../../store/timeline';
import { setInsertTimeline, showTimeline } from '../../../store/timeline/actions';
Expand Down Expand Up @@ -49,7 +49,7 @@ const AddToCaseButtonComponent: React.FC<Props> = ({ timelineId }) => {
const [isCaseModalOpen, openCaseModal] = useState(false);

const onRowClick = useCallback(
async (theCase?: Case) => {
async (theCase?: CaseUI) => {
openCaseModal(false);
await navigateToApp(APP_UI_ID, {
deepLinkId: SecurityPageName.case,
Expand Down

0 comments on commit de05a62

Please sign in to comment.