Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
oweitman committed Nov 13, 2024
1 parent 20e1474 commit c76ee48
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/jsonConfig/src/JsonConfigComponent/ConfigTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ class ConfigTable extends ConfigGeneric<ConfigTableProps, ConfigTableState> {
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;
Expand All @@ -1132,13 +1132,13 @@ class ConfigTable extends ConfigGeneric<ConfigTableProps, ConfigTableState> {
>
<Card>
<Paper style={styles.paper}>
<Accordion>
<Accordion style={styles.paper}>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="panel1-content"
id="panel1-header"
>
Filter and Data Actions
<Typography>Filter and Data Actions</Typography>
</AccordionSummary>
<AccordionDetails>
<Table>
Expand Down Expand Up @@ -1383,7 +1383,7 @@ class ConfigTable extends ConfigGeneric<ConfigTableProps, ConfigTableState> {
<Grid2 container>
{this.showImportDialog()}
{this.showTypeOfImportDialog()}
{this.enhancedFilterCard(0, doAnyFilterSet)}
{this.enhancedFilterCard(/* 0, doAnyFilterSet */)}
{visibleValue.map((idx, i) => (
<Grid2
key={`${idx}_${i}`}
Expand Down Expand Up @@ -1710,9 +1710,8 @@ class ConfigTable extends ConfigGeneric<ConfigTableProps, ConfigTableState> {

if (schema.usecardfor && schema.usecardfor.map(el => el.toUpperCase()).includes(isBreakpoint)) {
return this.renderCard();
} else {
return this.renderTable();
}
return this.renderTable();
}
}

Expand Down

0 comments on commit c76ee48

Please sign in to comment.