chore: Fix type errors in menu via casting

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-06-01 09:26:31 -04:00
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>}/>;
}
}