diff --git a/packages/ra-ui-materialui/src/button/ExportButton.tsx b/packages/ra-ui-materialui/src/button/ExportButton.tsx index 0aec07222c6..b6546585963 100644 --- a/packages/ra-ui-materialui/src/button/ExportButton.tsx +++ b/packages/ra-ui-materialui/src/button/ExportButton.tsx @@ -1,6 +1,7 @@ import React, { useCallback, FunctionComponent } from 'react'; import PropTypes from 'prop-types'; import DownloadIcon from '@material-ui/icons/GetApp'; +import { ButtonProps } from '@material-ui/core/Button'; import { downloadCSV, useDataProvider, @@ -88,10 +89,10 @@ interface Props { onClick?: (e: Event) => void; label: string; icon?: JSX.Element; - [key: string]: any; + basePath: string; } -const ExportButton: FunctionComponent = ({ +const ExportButton: FunctionComponent = ({ exporter, sort, filter = defaultFilter,