Skip to content

Commit 1aca5b0

Browse files
committed
Align Clone/List button props with LinkBase
1 parent fd42c8e commit 1aca5b0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/ra-ui-materialui/src/button/CloneButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ interface Props {
7878
scrollToTop?: boolean;
7979
}
8080

81-
export type CloneButtonProps = Props & ButtonProps;
81+
export type CloneButtonProps = Props & ButtonProps<typeof LinkBase>;
8282

8383
export default memo(CloneButton);
8484

packages/ra-ui-materialui/src/button/ListButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ interface Props {
115115
scrollToTop?: boolean;
116116
}
117117

118-
export type ListButtonProps = Props & ButtonProps;
118+
export type ListButtonProps = Props & ButtonProps<typeof LinkBase>;
119119

120120
const PREFIX = 'RaListButton';
121121

0 commit comments

Comments
 (0)