1
0
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:
Sebastian Malton 2023-05-03 15:57:32 -04:00
parent eaa39274ab
commit 032e9a19ec

View File

@ -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>}/>;
}
}