diff --git a/packages/ra-ui-materialui/src/input/FileInputPreview.tsx b/packages/ra-ui-materialui/src/input/FileInputPreview.tsx index 1fe6cb17a69..94d9637e441 100644 --- a/packages/ra-ui-materialui/src/input/FileInputPreview.tsx +++ b/packages/ra-ui-materialui/src/input/FileInputPreview.tsx @@ -50,7 +50,7 @@ FileInputPreview.propTypes = { className: PropTypes.string, file: PropTypes.object, onRemove: PropTypes.func.isRequired, - removeIcon: PropTypes.element, + removeIcon: PropTypes.elementType, }; const PREFIX = 'RaFileInputPreview';