hideHeader
Summary: The `hideHeader` didn't hide the header. Fixed it! Reviewed By: priteshrnandgaonkar Differential Revision: D13377067 fbshipit-source-id: 105541169d46b6db1a85e99c8d93ee52f904d261
This commit is contained in:
committed by
Facebook Github Bot
parent
0143052f98
commit
29f6e2ed4f
@@ -519,20 +519,22 @@ class ManagedTable extends React.Component<
|
|||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {columns, rows, rowLineHeight} = this.props;
|
const {columns, rows, rowLineHeight, hideHeader} = this.props;
|
||||||
const {columnOrder, columnSizes} = this.state;
|
const {columnOrder, columnSizes} = this.state;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<TableHead
|
{hideHeader !== true && (
|
||||||
columnOrder={columnOrder}
|
<TableHead
|
||||||
onColumnOrder={this.onColumnOrder}
|
columnOrder={columnOrder}
|
||||||
columns={columns}
|
onColumnOrder={this.onColumnOrder}
|
||||||
onColumnResize={this.onColumnResize}
|
columns={columns}
|
||||||
sortOrder={this.state.sortOrder}
|
onColumnResize={this.onColumnResize}
|
||||||
columnSizes={columnSizes}
|
sortOrder={this.state.sortOrder}
|
||||||
onSort={this.onSort}
|
columnSizes={columnSizes}
|
||||||
/>
|
onSort={this.onSort}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<Container>
|
<Container>
|
||||||
{this.props.autoHeight ? (
|
{this.props.autoHeight ? (
|
||||||
this.props.rows.map((_, index) => this.getRow({index, style: {}}))
|
this.props.rows.map((_, index) => this.getRow({index, style: {}}))
|
||||||
|
|||||||
Reference in New Issue
Block a user