mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Fix type errors in menu via casting
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
eaa39274ab
commit
032e9a19ec
@ -485,9 +485,9 @@ export class MenuItem extends React.Component<MenuItemProps> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (this.isLink) {
|
if (this.isLink) {
|
||||||
return <a {...elemProps}/>;
|
return <a {...elemProps as React.AllHTMLAttributes<HTMLAnchorElement>}/>;
|
||||||
}
|
}
|
||||||
|
|
||||||
return <li {...elemProps}/>;
|
return <li {...elemProps as React.AllHTMLAttributes<HTMLLIElement>}/>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user