File tree 1 file changed +13
-2
lines changed
packages/ra-ui-materialui/src/list
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import { styled } from '@mui/material/styles ' ;
2
+ import { LinearProgress , styled , SxProps } from '@mui/material' ;
3
3
import {
4
4
cloneElement ,
5
5
Children ,
6
6
HtmlHTMLAttributes ,
7
7
ComponentType ,
8
8
} from 'react' ;
9
9
import PropTypes from 'prop-types' ;
10
- import LinearProgress from '@mui/material/LinearProgress' ;
11
10
import {
12
11
sanitizeListRestProps ,
13
12
useListContext ,
@@ -124,6 +123,17 @@ SingleFieldList.propTypes = {
124
123
// @ts -ignore
125
124
linkType : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . bool ] ) ,
126
125
resource : PropTypes . string ,
126
+ sx : PropTypes . oneOfType ( [
127
+ PropTypes . arrayOf (
128
+ PropTypes . oneOfType ( [
129
+ PropTypes . func ,
130
+ PropTypes . object ,
131
+ PropTypes . bool ,
132
+ ] )
133
+ ) ,
134
+ PropTypes . func ,
135
+ PropTypes . object ,
136
+ ] ) ,
127
137
} ;
128
138
129
139
export interface SingleFieldListProps < RecordType extends RaRecord = any >
@@ -137,6 +147,7 @@ export interface SingleFieldListProps<RecordType extends RaRecord = any>
137
147
data ?: RecordType [ ] ;
138
148
total ?: number ;
139
149
loaded ?: boolean ;
150
+ sx ?: SxProps ;
140
151
}
141
152
142
153
const PREFIX = 'RaSingleFieldList' ;
You can’t perform that action at this time.
0 commit comments