@daphneb/phonereporting
Version:
33 lines (26 loc) • 863 B
JavaScript
/*
See License / Disclaimer https://raw.githubusercontent.com/DynamicTyped/Griddle/master/LICENSE
*/
;
var React = require('react');
var CustomFilterContainer = React.createClass({
displayName: "CustomFilterContainer",
getDefaultProps: function getDefaultProps() {
return {
"placeholderText": ""
};
},
render: function render() {
var that = this;
if (typeof that.props.customFilterComponent !== 'function') {
console.log("Couldn't find valid template.");
return React.createElement("div", null);
}
return React.createElement(that.props.customFilterComponent, {
changeFilter: this.props.changeFilter,
results: this.props.results,
currentResults: this.props.currentResults,
placeholderText: this.props.placeholderText });
}
});
module.exports = CustomFilterContainer;