File tree Expand file tree Collapse file tree
packages/ra-ui-materialui/src/button Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ interface Props {
7979 scrollToTop ?: boolean ;
8080}
8181
82- export type CloneButtonProps = Props & ButtonProps < typeof LinkBase > ;
82+ export type CloneButtonProps = Props & Omit < ButtonProps < typeof LinkBase > , 'to' > ;
8383
8484export default memo ( CloneButton ) ;
8585
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ interface Props<RecordType extends RaRecord = any> {
122122}
123123
124124export type EditButtonProps < RecordType extends RaRecord = any > =
125- Props < RecordType > & ButtonProps < typeof LinkBase > ;
125+ Props < RecordType > & Omit < ButtonProps < typeof LinkBase > , 'to' > ;
126126
127127const PREFIX = 'RaEditButton' ;
128128
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ interface Props {
115115 scrollToTop ?: boolean ;
116116}
117117
118- export type ListButtonProps = Props & ButtonProps < typeof LinkBase > ;
118+ export type ListButtonProps = Props & Omit < ButtonProps < typeof LinkBase > , 'to' > ;
119119
120120const PREFIX = 'RaListButton' ;
121121
You can’t perform that action at this time.
0 commit comments