fix build

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-12-16 15:35:46 +02:00
1 parent 806d589ff5
commit f92a956e33
3 files changed
+58 -45

No files matched your search

+7 -1
View File
@@ -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) {