diff --git a/source/components/SearchBar.tsx b/source/components/SearchBar.tsx index 1004d8a10..6ae1884fe 100644 --- a/source/components/SearchBar.tsx +++ b/source/components/SearchBar.tsx @@ -4,7 +4,7 @@ import { pick, sortBy, take } from 'ramda' import React, { useContext, useEffect, useState } from 'react' import Highlighter from 'react-highlight-words' import { useTranslation } from 'react-i18next' -import { Link, Redirect } from 'react-router-dom' +import { Link, Redirect, useHistory } from 'react-router-dom' import { Rule } from 'Types/rule' import Worker from 'worker-loader!./SearchBar.worker.js' import { capitalise0 } from '../utils' @@ -29,8 +29,18 @@ export default function SearchBar({ const [selectedOption, setSelectedOption] = useState