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:
1 parent
eaa39274ab
commit
032e9a19ec
1 file changed
+2
-2
@@ -485,9 +485,9 @@ export class MenuItem extends React.Component<MenuItemProps> {
|
||||
};
|
||||
|
||||
if (this.isLink) {
|
||||
return <a {...elemProps}/>;
|
||||
return <a {...elemProps as React.AllHTMLAttributes<HTMLAnchorElement>}/>;
|
||||
}
|
||||
|
||||
return <li {...elemProps}/>;
|
||||
return <li {...elemProps as React.AllHTMLAttributes<HTMLLIElement>}/>;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user