Fix empty style passed as string instead of object
This commit is contained in:
parent
baa604cdb1
commit
841fc40568
|
@ -17,7 +17,7 @@ var Link = React.createClass({
|
||||||
className = (this.props.button ? 'button-block button-' + this.props.button : 'button-text') +
|
className = (this.props.button ? 'button-block button-' + this.props.button : 'button-text') +
|
||||||
(this.props.fadeIn ? ' fade-in-link' : '');
|
(this.props.fadeIn ? ' fade-in-link' : '');
|
||||||
return (
|
return (
|
||||||
<a className={className} href={href} style={this.props.style ? this.props.style : ''}>
|
<a className={className} href={href} style={this.props.style ? this.props.style : {}}>
|
||||||
{this.props.icon ? icon : '' }
|
{this.props.icon ? icon : '' }
|
||||||
{this.props.label}
|
{this.props.label}
|
||||||
</a>
|
</a>
|
||||||
|
@ -187,6 +187,7 @@ var SearchResults = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
var rows = [];
|
var rows = [];
|
||||||
console.log('results');
|
console.log('results');
|
||||||
|
console.log('made it here');
|
||||||
this.props.results.forEach(function(result) {
|
this.props.results.forEach(function(result) {
|
||||||
rows.push(
|
rows.push(
|
||||||
<SearchResultRow name={result.name} title={result.title} imgUrl={result.thumbnail}
|
<SearchResultRow name={result.name} title={result.title} imgUrl={result.thumbnail}
|
||||||
|
|
Loading…
Reference in a new issue