From dfab365cfc7ad54cfaad6c29c4373fa4d523a1cb Mon Sep 17 00:00:00 2001 From: Kenneth Ng Date: Thu, 31 Aug 2023 16:51:05 +0100 Subject: [PATCH] Add searchType field to SearchParams type --- packages/datagateway-common/src/app.types.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/datagateway-common/src/app.types.tsx b/packages/datagateway-common/src/app.types.tsx index febd6940c..5aa03ebe5 100644 --- a/packages/datagateway-common/src/app.types.tsx +++ b/packages/datagateway-common/src/app.types.tsx @@ -1,4 +1,6 @@ // Parent app name and token in localstorage. +import { MLSearchType } from './api'; + export const MicroFrontendId = 'scigateway'; export const MicroFrontendToken = `${MicroFrontendId}:token`; @@ -363,7 +365,7 @@ export interface QueryParams { startDate: Date | null; endDate: Date | null; currentTab: string; - semanticSearch: boolean; + searchType: MLSearchType | null; } export type SemanticSearchResults = {