var React = require('react');
var Domain = React.createClass({
render: function() {
var className = this.props.active ? 'active' : '';
return (
{this.props.data.zone_name.val()}
);
}
});
var DomainList = React.createClass({
render: function() {
var currDomain = this.props.currentDomain;
var domains = this.props.domains.map(function(domain) {
var active = currDomain === domain.zone_name.val();
return
});
return (
Domains
{ domains.length === 0 &&
Loading...
}
{ domains.length > 0 &&
}
);
}
});
module.exports = DomainList;