Skip to content

Commit

Permalink
fixing searchBar style type (#2785)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kira-Pilot committed Jul 1, 2022
1 parent 2d0ea00 commit ead3516
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const SearchBarWithFilter: React.FC<SearchBarWithFilterProps> = ({
presetFilters,
error,
}) => {
const styles = useStyles({ error })
const styles = useStyles({ error: !!error })

const form = useFormik<FilterFormValues>({
enableReinitialize: true,
Expand Down Expand Up @@ -119,7 +119,7 @@ export const SearchBarWithFilter: React.FC<SearchBarWithFilterProps> = ({
/>
</form>

{presetFilters && presetFilters.length > 0 && (
{presetFilters && presetFilters.length && (
<Menu
id="filter-menu"
anchorEl={anchorEl}
Expand Down Expand Up @@ -150,7 +150,7 @@ export const SearchBarWithFilter: React.FC<SearchBarWithFilterProps> = ({
}

interface StyleProps {
error?: unknown
error?: boolean
}

const useStyles = makeStyles<Theme, StyleProps>((theme) => ({
Expand Down

0 comments on commit ead3516

Please sign in to comment.