@@ -21,6 +21,7 @@ import { connect } from 'react-redux';
21
21
import ChallengeListing from 'components/challenge-listing' ;
22
22
import Banner from 'components/tc-communities/Banner' ;
23
23
import sidebarActions from 'actions/challenge-listing/sidebar' ;
24
+ import filterPanelActions from 'actions/challenge-listing/filter-panel' ;
24
25
import communityActions from 'actions/tc-communities' ;
25
26
// import SORT from 'utils/challenge-listing/sort';
26
27
import { BUCKETS , filterChanged , sortChangedBucket } from 'utils/challenge-listing/buckets' ;
@@ -447,6 +448,7 @@ export class ListingContainer extends React.Component {
447
448
// isBucketSwitching,
448
449
// userChallenges,
449
450
meta,
451
+ setSearchText,
450
452
} = this . props ;
451
453
452
454
const { tokenV3 } = auth ;
@@ -617,6 +619,7 @@ export class ListingContainer extends React.Component {
617
619
// userChallenges={[]}
618
620
isLoggedIn = { isLoggedIn }
619
621
meta = { meta }
622
+ setSearchText = { setSearchText }
620
623
/>
621
624
</ div >
622
625
) ;
@@ -741,6 +744,7 @@ ListingContainer.propTypes = {
741
744
getTotalChallengesCount : PT . func . isRequired ,
742
745
// userChallenges: PT.arrayOf(PT.string),
743
746
// getUserChallenges: PT.func.isRequired,
747
+ setSearchText : PT . func . isRequired ,
744
748
} ;
745
749
746
750
const mapStateToProps = ( state , ownProps ) => {
@@ -807,6 +811,7 @@ function mapDispatchToProps(dispatch) {
807
811
const a = actions . challengeListing ;
808
812
const ah = headerActions . topcoderHeader ;
809
813
const sa = sidebarActions . challengeListing . sidebar ;
814
+ const fp = filterPanelActions . challengeListing . filterPanel ;
810
815
const ca = communityActions . tcCommunity ;
811
816
return {
812
817
dropChallenges : ( ) => dispatch ( a . dropChallenges ( ) ) ,
@@ -880,6 +885,7 @@ function mapDispatchToProps(dispatch) {
880
885
// dispatch(a.getUserChallengesInit(uuid));
881
886
// dispatch(a.getUserChallengesDone(userId, tokenV3));
882
887
// },
888
+ setSearchText : text => dispatch ( fp . setSearchText ( text ) ) ,
883
889
} ;
884
890
}
885
891
0 commit comments