File tree 4 files changed +50
-8
lines changed
4 files changed +50
-8
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ const GraphNavBar = (props) => {
110
110
}}
111
111
/>
112
112
 Inspect
113
- </Link> */ }
114
- < button onClick = { ( ) => { setInspect ( ! inspect ) } } > Inspect</ button >
113
+ </Link>
114
+ <button onClick={() => { setInspect(!inspect) }}>Inspect</button> */ }
115
115
</ nav >
116
116
)
117
117
}
Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ import { useParams } from 'react-router-dom';
3
3
import { QueryContext } from '../context/QueryContext' ;
4
4
import { HealthContext } from '../context/HealthContext' ;
5
5
import { EventContext } from '../context/EventContext' ;
6
- import { DataGrid } from '@material-ui/data-grid' ;
6
+ import { DataGrid } from '@mui/x-data-grid' ;
7
+ import { GridToolbar } from '@mui/x-data-grid/components' ;
7
8
import * as DashboardContext from '../context/DashboardContext' ;
8
9
import lightAndDark from './Styling' ;
9
10
10
11
import { Button , TextField } from '@mui/material' ;
11
- import SearchBar from './SearchBar/SearchBar' ;
12
+
12
13
13
14
interface Params {
14
15
service : string ;
@@ -205,16 +206,23 @@ const TransferColumns = React.memo(() => {
205
206
style = { currentMode }
206
207
rows = { rows }
207
208
columns = { columns }
208
- pageSize = { 10 }
209
+ slots = { { toolbar : GridToolbar } }
210
+ slotProps = { {
211
+ toolbar : {
212
+ showQuickFilter : true ,
213
+ } ,
214
+ } }
215
+ pageSizeOptions = { [ 10 ] }
209
216
checkboxSelection
210
- disableSelectionOnClick
211
- onSelectionModelChange = { metricIndeces => {
217
+ disableRowSelectionOnClick
218
+ onRowSelectionModelChange = { metricIndeces => {
212
219
const metrics : any [ ] = [ ] ;
213
220
metricIndeces . forEach ( el => {
214
221
metrics . push ( metricsPool [ el ] . key ) ;
215
222
} ) ;
216
223
setTargetKeys ( metrics ) ;
217
224
} }
225
+
218
226
/>
219
227
220
228
</ div >
Original file line number Diff line number Diff line change 12
12
"@emotion/react" : " ^11.11.4" ,
13
13
"@emotion/styled" : " ^11.11.5" ,
14
14
"@jest/types" : " ^29.6.1" ,
15
- "@material-ui/data-grid" : " ^4.0.0-alpha.37" ,
16
15
"@mui/icons-material" : " ^5.15.16" ,
17
16
"@mui/material" : " ^5.15.16" ,
18
17
"@mui/styles" : " ^5.15.16" ,
18
+ "@mui/x-data-grid" : " ^7.4.0" ,
19
19
"@types/node" : " ^18.17.1" ,
20
20
"3d-force-graph" : " ^1.72.2" ,
21
21
"aws-sdk" : " ^2.1317.0" ,
You can’t perform that action at this time.
0 commit comments