From fb92e304076415c86bb1b5f1781114dc58bb257e Mon Sep 17 00:00:00 2001 From: stephmilovic Date: Fri, 21 Feb 2020 14:24:59 -0700 Subject: [PATCH] better types --- .../pages/case/components/all_cases/__mock__/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/__mock__/index.tsx b/x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/__mock__/index.tsx index fb2c9a29e9e4f..98a67304fcf1f 100644 --- a/x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/__mock__/index.tsx +++ b/x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/__mock__/index.tsx @@ -4,9 +4,10 @@ * you may not use this file except in compliance with the Elastic License. */ -import { QueryParams, SortFieldCase } from '../../../../../containers/case/types'; +import { SortFieldCase } from '../../../../../containers/case/types'; +import { UseGetCasesState } from '../../../../../containers/case/use_get_cases'; -export const useGetCasesMockState = { +export const useGetCasesMockState: UseGetCasesState = { data: { cases: [ { @@ -70,7 +71,7 @@ export const useGetCasesMockState = { page: 1, perPage: 5, sortField: SortFieldCase.createdAt, - sortOrder: 'desc' as QueryParams['sortOrder'], + sortOrder: 'desc', }, filterOptions: { search: '', tags: [] }, };