File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11# Changelog
2+ ## [ 31.1.5] - 2025-09-05
3+ - ReportDataGrid - replace obsolete header option
24## [ 31.1.4] - 2025-08-26
35- Fix ReportDataGrids valueFormatter, inline with mui datagrid changes
46## [ 31.1.3] - 2025-07-25
Original file line number Diff line number Diff line change 11{
22 "name" : " @linn-it/linn-form-components-library" ,
3- "version" : " 31.1.4 " ,
3+ "version" : " 31.1.5 " ,
44 "private" : false ,
55 "main" : " dist/index.cjs.js" ,
66 "module" : " dist/index.esm.js" ,
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { DataGrid , gridClasses , GridToolbar } from '@mui/x-data-grid' ;
2+ import { DataGrid , gridClasses } from '@mui/x-data-grid' ;
33import Grid from '@mui/material/Grid' ;
44import Tooltip from '@mui/material/Tooltip' ;
55import Typography from '@mui/material/Typography' ;
@@ -108,9 +108,6 @@ function ReportDataGrid({
108108 columnHeaders : ( ) => null
109109 } ;
110110 }
111- if ( showExport ) {
112- slots = { ...slots , toolbar : GridToolbar } ;
113- }
114111
115112 // Add totals row if required
116113 if ( showTotals ) {
@@ -172,6 +169,7 @@ function ReportDataGrid({
172169 rows = { rows }
173170 columns = { columns }
174171 slots = { slots }
172+ showToolbar = { showExport }
175173 autoHeight = { ! fullPages }
176174 density = "compact"
177175 getRowHeight = { ( ) => ( fixedRowHeight ? 30 : 'auto' ) }
You can’t perform that action at this time.
0 commit comments