@@ -11,7 +11,6 @@ import {
1111 Pagination ,
1212 PaginationVariant ,
1313 Popper ,
14- SearchInput ,
1514 Toolbar ,
1615 ToolbarContent ,
1716 ToolbarFilter ,
@@ -26,6 +25,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
2625import type { ICertificateProps } from "./Certificates.data" ;
2726import ShieldIcon from "@patternfly/react-icons/dist/esm/icons/shield-alt-icon" ;
2827import { capitalizeFirstLetter , formatDate , getCertificateStatusColor } from "@app/utils/utils" ;
28+ import { PublishedOnInput , SearchInputField } from "@app/shared-components/SearchInputField" ;
2929
3030export interface ICertificatesPageProps {
3131 certificates : ICertificateProps [ ] ;
@@ -232,18 +232,7 @@ const CertificatesPage = ({ certificates, columns }: ICertificatesPageProps) =>
232232 </ div >
233233 ) ;
234234
235- // Set up identifier search input
236- const searchInput = (
237- < SearchInput
238- placeholder = "Filter by text"
239- value = { searchValue }
240- onChange = { ( _event , value ) => onSearchChange ( value ) }
241- onClear = { ( ) => onSearchChange ( "" ) }
242- />
243- ) ;
244235
245- // Set up date filter
246- const publishedOnInput = < > Date range input here</ > ;
247236
248237 const toggleGroupItems = (
249238 < ToolbarGroup variant = "filter-group" >
@@ -255,10 +244,10 @@ const CertificatesPage = ({ certificates, columns }: ICertificatesPageProps) =>
255244 categoryName = "Subject"
256245 showToolbarItem = { activeAttributeMenu === "Filter text" }
257246 >
258- { searchInput }
247+ < SearchInputField searchValue = { searchValue } onSearchChange = { onSearchChange } />
259248 </ ToolbarFilter >
260249 < ToolbarFilter categoryName = { "Valid To" } showToolbarItem = { activeAttributeMenu === "Valid To" } >
261- { publishedOnInput }
250+ < PublishedOnInput />
262251 </ ToolbarFilter >
263252 < ToolbarItem variant = "pagination" > { renderPagination ( "top" , true ) } </ ToolbarItem >
264253 </ ToolbarGroup >
0 commit comments