From 8e7d72451d518da1affc3ed86cc224914e87942d Mon Sep 17 00:00:00 2001 From: Abhinav Date: Mon, 14 Mar 2022 12:25:23 +0530 Subject: [PATCH] rename sugestionType to things --- src/components/SearchBar.tsx | 4 ++-- src/types/search/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/SearchBar.tsx b/src/components/SearchBar.tsx index 3c7e4d493..3a156be0a 100644 --- a/src/components/SearchBar.tsx +++ b/src/components/SearchBar.tsx @@ -209,7 +209,7 @@ export default function SearchBar(props: Props) { ...objectResults.map( (searchResult) => ({ - type: SuggestionType.OBJECT, + type: SuggestionType.THING, value: searchResult, label: searchResult.class, } as Suggestion) @@ -251,7 +251,7 @@ export default function SearchBar(props: Props) { props.setSearch({ person: selectedOption.value as Person }); props.setOpen(true); break; - case SuggestionType.OBJECT: + case SuggestionType.THING: props.setSearch({ thing: selectedOption.value as Thing }); props.setOpen(true); break; diff --git a/src/types/search/index.ts b/src/types/search/index.ts index de5827316..7e3e868f8 100644 --- a/src/types/search/index.ts +++ b/src/types/search/index.ts @@ -16,7 +16,7 @@ export enum SuggestionType { VIDEO, PERSON, INDEX_STATUS, - OBJECT, + THING, } export interface DateValue {