Skip to content

Commit

Permalink
Merge pull request #6343 from marmelab/fix-toolbar-props
Browse files Browse the repository at this point in the history
Fix Toolbar props & propTypes
  • Loading branch information
fzaninotto committed Jun 11, 2021
2 parents 064f895 + 456ad1f commit e382d40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ra-ui-materialui/src/form/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { FormRenderProps } from 'react-final-form';

import { SaveButton, DeleteButton } from '../button';
import { ClassesOverride } from '../types';
import { Breakpoint } from '@material-ui/core/styles/createBreakpoints';

const useStyles = makeStyles(
theme => ({
Expand Down Expand Up @@ -229,7 +230,7 @@ export interface ToolbarProps<RecordType extends Record = Record>
/** @deprecated use mutationMode: undoable instead */
undoable?: boolean;
validating?: boolean;
width?: string;
width?: Breakpoint;
}

Toolbar.propTypes = {
Expand All @@ -252,7 +253,7 @@ Toolbar.propTypes = {
submitOnEnter: PropTypes.bool,
undoable: PropTypes.bool,
validating: PropTypes.bool,
width: PropTypes.string,
width: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
};

Toolbar.defaultProps = {
Expand Down

0 comments on commit e382d40

Please sign in to comment.