@@ -36,7 +36,7 @@ const PAGE_SIZE = 20;
3636const filterCodecs = buildFieldFilterCodecs ( {
3737 category : FilterCodecs . integerArray ,
3838 my_rating : FilterCodecs . integerArray ,
39- title_prefix : FilterCodecs . nonEmptyString ,
39+ text_search : FilterCodecs . nonEmptyString ,
4040 form_items : FilterCodecs . json ,
4141} ) ;
4242
@@ -150,8 +150,8 @@ function EventList(): React.JSX.Element {
150150 [ changeFilterValue ] ,
151151 ) ;
152152
153- const titlePrefixChanged = useCallback (
154- ( value : unknown ) => changeFilterValue ( 'title_prefix ' , value ) ,
153+ const textSearchChanged = useCallback (
154+ ( value : unknown ) => changeFilterValue ( 'text_search ' , value ) ,
155155 [ changeFilterValue ] ,
156156 ) ;
157157
@@ -183,7 +183,7 @@ function EventList(): React.JSX.Element {
183183
184184 return (
185185 < >
186- < h1 > Event Catalog </ h1 >
186+ < h1 > { t ( 'navigation.events.eventCatalog' ) } </ h1 >
187187
188188 < EventCatalogNavTabs />
189189
@@ -232,9 +232,9 @@ function EventList(): React.JSX.Element {
232232
233233 < div className = "ms-2 flex-grow-1" >
234234 < SearchInput
235- label = "Search"
236- value = { effectiveFilters . find ( ( { id } ) => id === 'title_prefix ' ) ?. value as string | undefined }
237- onChange = { titlePrefixChanged }
235+ label = { t ( 'events.catalog.textSearchLabel' ) }
236+ value = { effectiveFilters . find ( ( { id } ) => id === 'text_search ' ) ?. value as string | undefined }
237+ onChange = { textSearchChanged }
238238 iconSet = "bootstrap-icons"
239239 />
240240 </ div >
0 commit comments