Seed Support #56

Closed
ocnios wants to merge 173 commits from master into build
Showing only changes of commit e42252507b - Show all commits

View file

@ -98,9 +98,9 @@ let WunderBar = React.createClass({
} }
// this._input.value = ""; //trigger placeholder // this._input.value = ""; //trigger placeholder
this._focusPending = true; this._focusPending = true;
if (!this.state.address.match(/^lbry:\/\//)) //onFocus, if they are not on an exact URL, clear the bar if (!this.state.address.startsWith('lbry://')) //onFocus, if they are not on an exact URL, clear the bar
{ {
newState.address = ""; newState.address = '';
} }
this.setState(newState); this.setState(newState);
}, },
@ -119,7 +119,8 @@ let WunderBar = React.createClass({
this._input = ref; this._input = ref;
}, },
render: function() { render: function() {
return <div className={"wunderbar" + (this.state.isActive ? " wunderbar--active" : "")}> return (
<div className={'wunderbar' + (this.state.isActive ? ' wunderbar--active' : '')}>
{this.state.icon ? <Icon fixed icon={this.state.icon} /> : '' } {this.state.icon ? <Icon fixed icon={this.state.icon} /> : '' }
<input className="wunderbar__input" type="search" placeholder="Type a LBRY address or search term" <input className="wunderbar__input" type="search" placeholder="Type a LBRY address or search term"
ref={this.onReceiveRef} ref={this.onReceiveRef}
@ -129,6 +130,7 @@ let WunderBar = React.createClass({
value={this.state.address} value={this.state.address}
placeholder="Find movies, music, games, and more" /> placeholder="Find movies, music, games, and more" />
</div> </div>
);
} }
}) })