Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/ra-ui-materialui/src/button/CloneButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ const sanitizeRestProps = ({
}: Omit<CloneButtonProps, 'label' | 'scrollToTop' | 'icon'>) => rest;

interface Props {
resource?: string;
record?: any;
icon?: ReactNode;
scrollToTop?: boolean;
}

export type CloneButtonProps = Props & ButtonProps;
export type CloneButtonProps = Props & Omit<ButtonProps<typeof LinkBase>, 'to'>;

export default memo(CloneButton);

Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/button/EditButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ interface Props<RecordType extends RaRecord = any> {
}

export type EditButtonProps<RecordType extends RaRecord = any> =
Props<RecordType> & ButtonProps;
Props<RecordType> & Omit<ButtonProps<typeof LinkBase>, 'to'>;

const PREFIX = 'RaEditButton';

Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/button/ListButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ interface Props {
scrollToTop?: boolean;
}

export type ListButtonProps = Props & ButtonProps;
export type ListButtonProps = Props & Omit<ButtonProps<typeof LinkBase>, 'to'>;

const PREFIX = 'RaListButton';

Expand Down
Loading