@@ -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/components/SearchInputField" ;
2929
3030export interface ICertificatesPageProps {
3131 certificates : ICertificateProps [ ] ;
@@ -232,19 +232,6 @@ 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- ) ;
244-
245- // Set up date filter
246- const publishedOnInput = < > Date range input here</ > ;
247-
248235 const toggleGroupItems = (
249236 < ToolbarGroup variant = "filter-group" >
250237 < ToolbarItem > { attributeDropdown } </ ToolbarItem >
@@ -255,10 +242,10 @@ const CertificatesPage = ({ certificates, columns }: ICertificatesPageProps) =>
255242 categoryName = "Subject"
256243 showToolbarItem = { activeAttributeMenu === "Filter text" }
257244 >
258- { searchInput }
245+ < SearchInputField searchValue = { searchValue } onSearchChange = { onSearchChange } />
259246 </ ToolbarFilter >
260247 < ToolbarFilter categoryName = { "Valid To" } showToolbarItem = { activeAttributeMenu === "Valid To" } >
261- { publishedOnInput }
248+ < PublishedOnInput />
262249 </ ToolbarFilter >
263250 < ToolbarItem variant = "pagination" > { renderPagination ( "top" , true ) } </ ToolbarItem >
264251 </ ToolbarGroup >
0 commit comments