@@ -4,7 +4,8 @@ import ModFoundOverview from './ModFoundOverview.jsx';
44class ModSearch extends React . Component {
55 render ( ) {
66 if ( this . props . loggedIn ) {
7- return (
7+ //TODO switch back to currently commented out code, when the mod-portal-api is back with all features!!
8+ /*return (
89 <div className="box-body">
910 <form onSubmit={this.props.submitSearchMod}>
1011 <div className="input-group col-lg-5">
@@ -19,6 +20,18 @@ class ModSearch extends React.Component {
1920 {...this.props}
2021 />
2122 </div>
23+ )*/
24+ return (
25+ < div className = "box-body" >
26+ < form onSubmit = { this . props . loadDownloadList } >
27+ < div className = "input-group col-lg-5" >
28+ < input type = "text" className = "form-control" placeholder = "Download mod by ID" name = "modId" />
29+ < span className = "input-group-btn" >
30+ < input className = "btn btn-default" type = "submit" value = "Go!" />
31+ </ span >
32+ </ div >
33+ </ form >
34+ </ div >
2235 )
2336 } else {
2437 return (
@@ -44,7 +57,8 @@ class ModSearch extends React.Component {
4457ModSearch . propTypes = {
4558 submitSearchMod : React . PropTypes . func . isRequired ,
4659 loggedIn : React . PropTypes . bool . isRequired ,
47- submitFactorioLogin : React . PropTypes . func . isRequired
60+ submitFactorioLogin : React . PropTypes . func . isRequired ,
61+ loadDownloadList : React . PropTypes . func . isRequired
4862}
4963
5064export default ModSearch ;
0 commit comments