From c76ee4802ee08184294a366e1dbb71c3da58280c Mon Sep 17 00:00:00 2001 From: oweitman Date: Wed, 13 Nov 2024 15:38:18 +0100 Subject: [PATCH] minor improvements --- .../src/JsonConfigComponent/ConfigTable.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/jsonConfig/src/JsonConfigComponent/ConfigTable.tsx b/packages/jsonConfig/src/JsonConfigComponent/ConfigTable.tsx index 48833672f..7d0138139 100644 --- a/packages/jsonConfig/src/JsonConfigComponent/ConfigTable.tsx +++ b/packages/jsonConfig/src/JsonConfigComponent/ConfigTable.tsx @@ -1112,7 +1112,7 @@ class ConfigTable extends ConfigGeneric { query = query.replace(/^@media( ?)/m, ''); return window.matchMedia(query).matches; } - enhancedFilterCard(buttonsWidth: number, doAnyFilterSet: boolean): JSX.Element { + enhancedFilterCard(/* buttonsWidth: number, doAnyFilterSet: boolean */): JSX.Element { const { schema } = this.props; const { order, orderBy } = this.state; let tdStyle: React.CSSProperties | undefined; @@ -1132,13 +1132,13 @@ class ConfigTable extends ConfigGeneric { > - + } aria-controls="panel1-content" id="panel1-header" > - Filter and Data Actions + Filter and Data Actions @@ -1383,7 +1383,7 @@ class ConfigTable extends ConfigGeneric { {this.showImportDialog()} {this.showTypeOfImportDialog()} - {this.enhancedFilterCard(0, doAnyFilterSet)} + {this.enhancedFilterCard(/* 0, doAnyFilterSet */)} {visibleValue.map((idx, i) => ( { if (schema.usecardfor && schema.usecardfor.map(el => el.toUpperCase()).includes(isBreakpoint)) { return this.renderCard(); - } else { - return this.renderTable(); } + return this.renderTable(); } }