File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/app/src/app/pages/Search Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
1414 PoweredBy ,
1515 Configure ,
1616} from 'react-instantsearch/dom' ;
17+ import { History , Location } from 'history' ;
1718
1819import { Navigation } from 'app/pages/common/Navigation' ;
1920import { useOvermind } from 'app/overmind' ;
@@ -25,14 +26,19 @@ import Filters from './Filters';
2526import Results from './Results' ;
2627import Styles from './search' ;
2728
29+ interface ISearchProps {
30+ history : History ;
31+ location : Location ;
32+ }
33+
2834const updateAfter = 700 ;
2935
3036const createURL = state => `?${ qs . stringify ( state ) } ` ;
3137
3238const 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 ( ) ;
You can’t perform that action at this time.
0 commit comments