Skip to content

Commit

Permalink
Better prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Sep 3, 2019
1 parent 18e5e55 commit 8cf3aca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ra-ui-materialui/src/button/ExportButton.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -88,10 +89,10 @@ interface Props {
onClick?: (e: Event) => void;
label: string;
icon?: JSX.Element;
[key: string]: any;
basePath: string;
}

const ExportButton: FunctionComponent<Props> = ({
const ExportButton: FunctionComponent<Props & ButtonProps> = ({
exporter,
sort,
filter = defaultFilter,
Expand Down

0 comments on commit 8cf3aca

Please sign in to comment.