Skip to content

Commit

Permalink
rename method and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
charmingduchess committed Oct 24, 2023
1 parent 4ef1156 commit 8459034
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/SearchForm/SearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const SearchForm = () => {
await router.push(`${PATHS.SEARCH}${queryString}`)
}

const handleInputChange = (
const handleChange = (
e: SyntheticEvent,
setValue: Dispatch<SetStateAction<string>>
) => {
Expand All @@ -48,7 +48,7 @@ const SearchForm = () => {
labelText="Search Bar Label"
selectProps={{
value: searchScope,
onChange: (e) => handleInputChange(e, setSearchScope),
onChange: (e) => handleChange(e, setSearchScope),
labelText: "Select a category",
name: "search_scope",
optionsData: [
Expand All @@ -61,7 +61,7 @@ const SearchForm = () => {
],
}}
textInputProps={{
onChange: (e) => handleInputChange(e, setSearchTerm),
onChange: (e) => handleChange(e, setSearchTerm),
value: searchTerm,
labelText:
"Search by keyword, title, journal title, or author/contributor",
Expand Down

0 comments on commit 8459034

Please sign in to comment.