var React = require('react/addons'); var ContainerListItem = require('./ContainerListItem.react'); var ContainerListNewItem = require('./ContainerListNewItem.react'); var ContainerList = React.createClass({ componentWillMount: function () { this._start = Date.now(); }, render: function () { var self = this; var containers = this.props.containers.map(function (container) { var container_id = container.Id; if (!container_id && container.State.Downloading) { // Fall back to the container image name when there is no id. (when the // image is downloading). container_id = container.Image; } return ( ); }); var newItem; if (!this.props.downloading) { newItem = ; } else { newItem = ''; } return ( ); } }); module.exports = ContainerList;