Skip to content

Commit

Permalink
Merge pull request #8040 from marmelab/fix-MenuItemLink-type
Browse files Browse the repository at this point in the history
[TypeScript] Fix MenuItemLink prop type isn't exported
  • Loading branch information
fzaninotto authored Aug 5, 2022
2 parents 0847d2b + ce98e65 commit 0ae5f1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ra-ui-materialui/src/layout/MenuItemLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import { useTranslate, useBasename } from 'ra-core';
* </Admin>
* );
*/
export const MenuItemLink = forwardRef((props: MenuItemLinkProps, ref) => {
export const MenuItemLink = forwardRef<any, MenuItemLinkProps>((props, ref) => {
const {
className,
primaryText,
Expand Down Expand Up @@ -101,8 +101,8 @@ export const MenuItemLink = forwardRef((props: MenuItemLinkProps, ref) => {
className={clsx(className, {
[MenuItemLinkClasses.active]: !!match,
})}
component={LinkRef}
// @ts-ignore
component={LinkRef}
ref={ref}
tabIndex={0}
{...rest}
Expand Down

0 comments on commit 0ae5f1f

Please sign in to comment.