From 360774fa470377a979029ee9b64e68e69011eeaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Svarcas?= Date: Wed, 13 Apr 2022 09:51:16 -0300 Subject: [PATCH] Remove non existant props --- packages/ra-ui-materialui/src/form/SimpleForm.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/ra-ui-materialui/src/form/SimpleForm.tsx b/packages/ra-ui-materialui/src/form/SimpleForm.tsx index 2269df285b7..08e61039e84 100644 --- a/packages/ra-ui-materialui/src/form/SimpleForm.tsx +++ b/packages/ra-ui-materialui/src/form/SimpleForm.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { ReactElement, ReactNode } from 'react'; import PropTypes from 'prop-types'; -import { Form, FormProps, MutationMode } from 'ra-core'; +import { Form, FormProps } from 'ra-core'; import { Stack, CardContent, SxProps, StackProps } from '@mui/material'; import { Toolbar } from './Toolbar'; @@ -60,7 +60,6 @@ export const SimpleForm = (props: SimpleFormProps) => { SimpleForm.propTypes = { children: PropTypes.node, defaultValues: PropTypes.oneOfType([PropTypes.object, PropTypes.func]), - mutationMode: PropTypes.oneOf(['pessimistic', 'optimistic', 'undoable']), // @ts-ignore record: PropTypes.object, redirect: PropTypes.oneOfType([ @@ -79,8 +78,6 @@ export interface SimpleFormProps className?: string; component?: React.ComponentType; defaultValues?: any; - mutationMode?: MutationMode; - resource?: string; toolbar?: ReactElement | false; sx?: SxProps; } @@ -97,7 +94,6 @@ const sanitizeRestProps = ({ className, component, defaultValues, - mutationMode, onSubmit, record, resource,