diff --git a/packages/client/src/i18n/messages/views/search.ts b/packages/client/src/i18n/messages/views/search.ts index e2d79dce6b..540b899565 100644 --- a/packages/client/src/i18n/messages/views/search.ts +++ b/packages/client/src/i18n/messages/views/search.ts @@ -8,31 +8,9 @@ * * Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS. */ -import { defineMessages, MessageDescriptor } from 'react-intl' +import { defineMessages } from 'react-intl' -interface ISearchMessages - extends Record { - dataTableResults: MessageDescriptor - dataTableNoResults: MessageDescriptor - listItemEventRegistrationNumber: MessageDescriptor - informantContact: MessageDescriptor - searchingFor: MessageDescriptor - searchResultFor: MessageDescriptor - noResultFor: MessageDescriptor - totalResultText: MessageDescriptor - locationNotFound: MessageDescriptor - bookmarkAdvancedSearchModalTitle: MessageDescriptor - bookmarkAdvancedSearchModalBody: MessageDescriptor - removeBookmarkAdvancedSearchModalTitle: MessageDescriptor - removeBookmarkAdvancedSearchModalBody: MessageDescriptor - advancedSearchBookmarkSuccessNotification: MessageDescriptor - removedAdvancedSearchBookmarkSuccessNotification: MessageDescriptor - advancedSearchBookmarkErrorNotification: MessageDescriptor - advancedSearchBookmarkLoadingNotification: MessageDescriptor - removeAdvancedSearchBookmarkLoadingNotification: MessageDescriptor -} - -const messagesToDefine: ISearchMessages = { +const messagesToDefine = { dataTableResults: { id: 'search.results', defaultMessage: 'Results', @@ -61,6 +39,11 @@ const messagesToDefine: ISearchMessages = { defaultMessage: 'Searching for “{param}”', description: 'The searching for text' }, + placeholder: { + id: 'search.placeholder', + defaultMessage: 'Name of query', + description: 'Placeholder text of search input' + }, searchResultFor: { id: 'search.searchResultFor', defaultMessage: 'Search results for ”{param}”', @@ -138,4 +121,4 @@ const messagesToDefine: ISearchMessages = { } } -export const messages: ISearchMessages = defineMessages(messagesToDefine) +export const messages = defineMessages(messagesToDefine) diff --git a/packages/client/src/views/AdvancedSearch/SaveBookmarkModal.tsx b/packages/client/src/views/AdvancedSearch/SaveBookmarkModal.tsx index 272fde811a..9d578f6de5 100644 --- a/packages/client/src/views/AdvancedSearch/SaveBookmarkModal.tsx +++ b/packages/client/src/views/AdvancedSearch/SaveBookmarkModal.tsx @@ -185,7 +185,7 @@ export function BookmarkAdvancedSearchModal({