File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
packages/app/src/app/pages/Search Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 55} from '@codesandbox/common/lib/utils/config' ;
66import MaxWidth from '@codesandbox/common/lib/components/flex/MaxWidth' ;
77import Margin from '@codesandbox/common/lib/components/spacing/Margin' ;
8- import { History , Location } from 'history ' ;
8+ import { RouteComponentProps } from 'react-router-dom ' ;
99import qs from 'qs' ;
1010import React , {
1111 FunctionComponent ,
@@ -39,10 +39,7 @@ const createURL = state => `?${qs.stringify(state)}`;
3939const searchStateToUrl = ( location , searchState ) =>
4040 searchState ? `${ location . pathname } ${ createURL ( searchState ) } ` : '' ;
4141
42- type Props = {
43- history : History ;
44- location : Location ;
45- } ;
42+ type Props = RouteComponentProps ;
4643const Search : FunctionComponent < Props > = ( { history, location } ) => {
4744 const {
4845 actions : { searchMounted } ,
You can’t perform that action at this time.
0 commit comments