Skip to content

Commit 8b256f5

Browse files
committed
rename ra-core FieldProps to FieldPropsBase
1 parent d7d1d0b commit 8b256f5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/ra-core/src/controller/field/ReferenceArrayFieldBase.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useRecordContext } from '../record';
77
import { useReferenceArrayFieldController } from './useReferenceArrayFieldController';
88
import { ResourceContextProvider } from '../../core';
99
import { ListContextProvider, ListControllerResult } from '../list';
10-
import { FieldProps } from './types';
10+
import { FieldPropsBase } from './types';
1111

1212
/**
1313
* A container component that fetches records from another resource specified
@@ -119,7 +119,7 @@ export const ReferenceArrayFieldBase = <
119119
export interface ReferenceArrayFieldBaseProps<
120120
RecordType extends RaRecord = RaRecord,
121121
ReferenceRecordType extends RaRecord = RaRecord,
122-
> extends FieldProps<RecordType> {
122+
> extends FieldPropsBase<RecordType> {
123123
children?: ReactNode;
124124
render?: (props: ListControllerResult<ReferenceRecordType>) => ReactElement;
125125
filter?: FilterPayload;

packages/ra-core/src/controller/field/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ExtractRecordPaths, HintedString } from '../../types';
33

44
type SortOrder = 'ASC' | 'DESC';
55

6-
export interface FieldProps<
6+
export interface FieldPropsBase<
77
RecordType extends Record<string, any> = Record<string, any>,
88
> {
99
/**

packages/ra-ui-materialui/src/field/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { TableCellProps } from '@mui/material/TableCell';
2-
import { FieldProps as FieldPropsCore } from 'ra-core';
2+
import { FieldPropsBase } from 'ra-core';
33

44
type TextAlign = TableCellProps['align'];
55

66
export interface FieldProps<
77
RecordType extends Record<string, any> = Record<string, any>,
8-
> extends FieldPropsCore<RecordType> {
8+
> extends FieldPropsBase<RecordType> {
99
/**
1010
* A class name to apply to the root div element
1111
*/

0 commit comments

Comments
 (0)