File tree 1 file changed +9
-2
lines changed
packages/ra-ui-materialui/src/field
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { ReactElement } from 'react' ;
2
2
import { Record } from 'ra-core' ;
3
3
import PropTypes from 'prop-types' ;
4
+ import { TableCellProps } from '@material-ui/core/TableCell' ;
4
5
5
- type TextAlign = 'right' | 'left' ;
6
+ type TextAlign = TableCellProps [ 'align' ] ;
6
7
type SortOrder = 'ASC' | 'DESC' ;
7
8
8
9
export interface FieldProps < RecordType extends Record = Record >
@@ -42,6 +43,12 @@ export const fieldPropTypes = {
42
43
className : PropTypes . string ,
43
44
cellClassName : PropTypes . string ,
44
45
headerClassName : PropTypes . string ,
45
- textAlign : PropTypes . oneOf < TextAlign > ( [ 'right' , 'left' ] ) ,
46
+ textAlign : PropTypes . oneOf < TextAlign > ( [
47
+ 'inherit' ,
48
+ 'left' ,
49
+ 'center' ,
50
+ 'right' ,
51
+ 'justify' ,
52
+ ] ) ,
46
53
emptyText : PropTypes . string ,
47
54
} ;
You can’t perform that action at this time.
0 commit comments