From 29f6e2ed4f67e152524dd7b77820dc5bec264495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Fri, 14 Dec 2018 10:09:50 -0800 Subject: [PATCH] hideHeader Summary: The `hideHeader` didn't hide the header. Fixed it! Reviewed By: priteshrnandgaonkar Differential Revision: D13377067 fbshipit-source-id: 105541169d46b6db1a85e99c8d93ee52f904d261 --- src/ui/components/table/ManagedTable.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/ui/components/table/ManagedTable.js b/src/ui/components/table/ManagedTable.js index 52a3fcd1f..544422935 100644 --- a/src/ui/components/table/ManagedTable.js +++ b/src/ui/components/table/ManagedTable.js @@ -519,20 +519,22 @@ class ManagedTable extends React.Component< }; render() { - const {columns, rows, rowLineHeight} = this.props; + const {columns, rows, rowLineHeight, hideHeader} = this.props; const {columnOrder, columnSizes} = this.state; return ( - + {hideHeader !== true && ( + + )} {this.props.autoHeight ? ( this.props.rows.map((_, index) => this.getRow({index, style: {}}))