mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
806d589ff5
commit
f92a956e33
3 files changed
+58
-45
No files matched your search
@@ -114,7 +114,13 @@ export class Icon extends React.PureComponent<IconProps> {
|
||||
|
||||
// render icon type
|
||||
if (link) {
|
||||
return <NavLink {...iconProps} to={link}/>;
|
||||
const { className, children } = iconProps;
|
||||
|
||||
return (
|
||||
<NavLink className={className} to={link}>
|
||||
{children}
|
||||
</NavLink>
|
||||
);
|
||||
}
|
||||
|
||||
if (href) {
|
||||
|
||||
Reference in new issue
Block a user