lml-main
Version:
This is now a mono repository published into many standalone packages.
29 lines • 1.45 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const cosmoui_1 = require("cosmoui");
const courier_table_row_1 = require("./courier-table-row");
class CouriersTable extends React.Component {
constructor() {
super(...arguments);
this.renderRows = () => this.props.couriers.map(c => React.createElement(courier_table_row_1.CourierTableRow, { key: c.refId, refId: c.refId }));
this.headerStyles = () => ({
verticalAlign: 'middle',
borderLeft: 'none',
borderRight: 'none',
});
}
render() {
return (React.createElement(cosmoui_1.Table, { hover: true, condensed: true, id: "find-courier-table" },
React.createElement("thead", null,
React.createElement("tr", null,
React.createElement("th", { style: this.headerStyles() }, "FREQ"),
React.createElement("th", { style: this.headerStyles() }, "COURIER ID"),
React.createElement("th", { style: this.headerStyles() }, "CALL SIGN"),
React.createElement("th", { style: this.headerStyles() }, "STATUS"),
React.createElement("th", { style: this.headerStyles() }, "VEHICLE TYPE"))),
React.createElement("tbody", null, this.renderRows())));
}
}
exports.CouriersTable = CouriersTable;
//# sourceMappingURL=couriers-table.js.map