From d8e75ce5989a315ff74f38ec4498283231ffb379 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Tue, 25 Aug 2020 10:43:01 +0200 Subject: [PATCH] RemoveClassNameMap in ReferenceField --- packages/ra-ui-materialui/src/field/ReferenceField.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/ra-ui-materialui/src/field/ReferenceField.tsx b/packages/ra-ui-materialui/src/field/ReferenceField.tsx index d2a0e8f4e2b..1ebd0825cb0 100644 --- a/packages/ra-ui-materialui/src/field/ReferenceField.tsx +++ b/packages/ra-ui-materialui/src/field/ReferenceField.tsx @@ -15,8 +15,8 @@ import { import LinearProgress from '../layout/LinearProgress'; import Link from '../Link'; import sanitizeRestProps from './sanitizeRestProps'; -import { ClassNameMap } from '@material-ui/styles'; import { FieldProps, fieldPropTypes, InjectedFieldProps } from './types'; +import { ClassesOverride } from '../types'; /** * Fetch reference record, and delegate rendering to child component. @@ -131,7 +131,7 @@ ReferenceField.defaultProps = { export interface ReferenceFieldProps extends FieldProps, InjectedFieldProps { children: ReactElement; - classes?: Partial>; + classes?: ClassesOverride; reference: string; resource?: string; source: string; @@ -237,13 +237,11 @@ ReferenceFieldView.propTypes = { translateChoice: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]), }; -export type ReferenceFieldClassKey = 'link'; - export interface ReferenceFieldViewProps extends FieldProps, InjectedFieldProps, UseReferenceProps { - classes?: Partial>; + classes?: ClassesOverride; reference: string; resource?: string; translateChoice?: Function | boolean;