Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D35884
This commit is contained in:
@@ -31,9 +31,11 @@ define(function(require, exports, module) {
|
||||
|
||||
static get defaultProps() {
|
||||
return {
|
||||
columns: [{
|
||||
id: "default",
|
||||
}],
|
||||
columns: [
|
||||
{
|
||||
id: "default",
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -68,7 +70,7 @@ define(function(require, exports, module) {
|
||||
// Render the rest of the columns (if any)
|
||||
this.props.columns.forEach(col => {
|
||||
const cellStyle = {
|
||||
"width": col.width ? col.width : "",
|
||||
width: col.width ? col.width : "",
|
||||
};
|
||||
|
||||
let classNames = [];
|
||||
@@ -79,28 +81,38 @@ define(function(require, exports, module) {
|
||||
}
|
||||
|
||||
cells.push(
|
||||
td({
|
||||
className: classNames.join(" "),
|
||||
style: cellStyle,
|
||||
role: "presentation",
|
||||
id: col.id,
|
||||
key: col.id,
|
||||
},
|
||||
visible ? div({
|
||||
className: "treeHeaderCellBox",
|
||||
td(
|
||||
{
|
||||
className: classNames.join(" "),
|
||||
style: cellStyle,
|
||||
role: "presentation",
|
||||
}, col.title) : null
|
||||
id: col.id,
|
||||
key: col.id,
|
||||
},
|
||||
visible
|
||||
? div(
|
||||
{
|
||||
className: "treeHeaderCellBox",
|
||||
role: "presentation",
|
||||
},
|
||||
col.title
|
||||
)
|
||||
: null
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
return (
|
||||
thead({
|
||||
return thead(
|
||||
{
|
||||
role: "presentation",
|
||||
}, tr({
|
||||
className: visible ? "treeHeaderRow" : "",
|
||||
role: "presentation",
|
||||
}, cells))
|
||||
},
|
||||
tr(
|
||||
{
|
||||
className: visible ? "treeHeaderRow" : "",
|
||||
role: "presentation",
|
||||
},
|
||||
cells
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user