Skip to content

Commit 0ae5f1f

Browse files
authored
Merge pull request #8040 from marmelab/fix-MenuItemLink-type
[TypeScript] Fix MenuItemLink prop type isn't exported
2 parents 0847d2b + ce98e65 commit 0ae5f1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ra-ui-materialui/src/layout/MenuItemLink.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import { useTranslate, useBasename } from 'ra-core';
6565
* </Admin>
6666
* );
6767
*/
68-
export const MenuItemLink = forwardRef((props: MenuItemLinkProps, ref) => {
68+
export const MenuItemLink = forwardRef<any, MenuItemLinkProps>((props, ref) => {
6969
const {
7070
className,
7171
primaryText,
@@ -101,8 +101,8 @@ export const MenuItemLink = forwardRef((props: MenuItemLinkProps, ref) => {
101101
className={clsx(className, {
102102
[MenuItemLinkClasses.active]: !!match,
103103
})}
104-
component={LinkRef}
105104
// @ts-ignore
105+
component={LinkRef}
106106
ref={ref}
107107
tabIndex={0}
108108
{...rest}

0 commit comments

Comments
 (0)