File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
src/shared/containers/EDU Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,19 @@ exports[`Default render 1`] = `
8282 " title" : " Competitive Programming" ,
8383 },
8484 Object {
85- " href" : " /thrive/tracks?track=Data%20Science&tax= " ,
85+ " href" : " /thrive/tracks?track=Data%20Science" ,
8686 " title" : " Data Science" ,
8787 },
8888 Object {
89- " href" : " /thrive/tracks?track=Design&tax= " ,
89+ " href" : " /thrive/tracks?track=Design" ,
9090 " title" : " Design" ,
9191 },
9292 Object {
93- " href" : " /thrive/tracks?track=Development&tax= " ,
93+ " href" : " /thrive/tracks?track=Development" ,
9494 " title" : " Development" ,
9595 },
9696 Object {
97- " href" : " /thrive/tracks?track=QA&tax= " ,
97+ " href" : " /thrive/tracks?track=QA" ,
9898 " title" : " QA" ,
9999 },
100100 ],
Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ export default class EDUSearch extends React.Component {
8888 } = this . state ;
8989 const title = 'Tutorials And Workshops That Matter | Thrive | Topcoder' ;
9090 const description = 'Thrive is our vault of content that we have been gathering over the years. It is full of tutorials and workshops that matter. Grow with us!' ;
91+ let inputSelectedFilter = '0' ;
92+ if ( query . phrase ) inputSelectedFilter = '1' ;
9193
9294 const metaTags = (
9395 < MetaTags
@@ -111,7 +113,10 @@ export default class EDUSearch extends React.Component {
111113 { /* Banner */ }
112114 < div className = { searchTheme . bannerContainer } >
113115 < div className = { searchTheme . searchBarWrapp } >
114- < SearchBar inputlVal = { query . phrase || query . title } inputSelectedFilter = { query . phrase ? '1' : '0' } />
116+ < SearchBar
117+ inputlVal = { query . phrase || query . title }
118+ inputSelectedFilter = { inputSelectedFilter }
119+ />
115120 </ div >
116121 </ div >
117122 < div className = { searchTheme . shapeBanner } />
You can’t perform that action at this time.
0 commit comments