diff --git a/src/components/SearchInput.tsx b/src/components/SearchInput.tsx index 3bf7d19..cc2f6bc 100644 --- a/src/components/SearchInput.tsx +++ b/src/components/SearchInput.tsx @@ -3,10 +3,11 @@ import { forwardRef } from 'react' interface SearchInputProps { handleKeyDown: (event: React.KeyboardEvent) => void handleSearch: () => void + handleChange?: (event: React.ChangeEvent) => void } export const SearchInput = forwardRef( - ({ handleKeyDown, handleSearch }, ref) => ( + ({ handleKeyDown, handleSearch, handleChange }, ref) => (
@@ -15,6 +16,7 @@ export const SearchInput = forwardRef( className='SMIWInput' ref={ref} onKeyDown={handleKeyDown} + onChange={handleChange} placeholder='Enter search term' />