Skip to content

Commit 4e664a1

Browse files
committed
fix typecheck errors
1 parent ff5fc3a commit 4e664a1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/app/src/app/pages/Search/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
PoweredBy,
1515
Configure,
1616
} from 'react-instantsearch/dom';
17+
import { History, Location} from 'history';
1718

1819
import { Navigation } from 'app/pages/common/Navigation';
1920
import { useOvermind } from 'app/overmind';
@@ -25,14 +26,19 @@ import Filters from './Filters';
2526
import Results from './Results';
2627
import Styles from './search';
2728

29+
interface ISearchProps {
30+
history: History;
31+
location: Location;
32+
}
33+
2834
const updateAfter = 700;
2935

3036
const createURL = state => `?${qs.stringify(state)}`;
3137

3238
const searchStateToUrl = (location, searchState) =>
3339
searchState ? `${location.pathname}${createURL(searchState)}` : '';
3440

35-
const Search = ({ history, location }) => {
41+
const Search: React.FC<ISearchProps> = ({ history, location }) => {
3642
const {
3743
actions: { searchMounted },
3844
} = useOvermind();

0 commit comments

Comments
 (0)