Bug 1561435 - Format devtools/client/, a=automatic-formatting

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
This commit is contained in:
Victor Porof
2019-07-05 11:24:38 +02:00
parent e1ef9c4c20
commit b7732ae890
2792 changed files with 96115 additions and 52865 deletions

View File

@@ -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
)
);
}
}