Skip to content

Commit

Permalink
fix: Search icon for Autosuggest (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: Maxwell Frank <[email protected]>
  • Loading branch information
MaxFrank13 and MaxFrank13 authored Jul 25, 2023
1 parent e6c562c commit 08c6243
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import {
Form,
Form, Icon,
} from '@edx/paragon';
import { useHits, useSearchBox } from 'react-instantsearch-hooks-web';
import { Search } from '@edx/paragon/icons';

const JobTitleInstantSearch = (props) => {
const { refine } = useSearchBox(props);
Expand All @@ -25,6 +26,12 @@ const JobTitleInstantSearch = (props) => {
onChange={handleAutosuggestChange}
name="job-title-suggest"
autoComplete="off"
trailingElement={(
<Icon
src={Search}
className="mr-2"
/>
)}
{...props}
>
{hits.map(job => (
Expand Down

0 comments on commit 08c6243

Please sign in to comment.