core-components: update WorkaroundNavLink props type

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam <ben@blam.sh>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-08-24 14:49:02 +02:00
parent e29809b8df
commit 98984826af
@@ -33,6 +33,7 @@ import classnames from 'classnames';
import React, {
ComponentProps,
ComponentType,
CSSProperties,
forwardRef,
KeyboardEventHandler,
ReactNode,
@@ -303,7 +304,7 @@ const sidebarSubmenuType = React.createElement(SidebarSubmenu).type;
// properly yet, matching for example /foobar with /foo.
export const WorkaroundNavLink = React.forwardRef<
HTMLAnchorElement,
NavLinkProps
NavLinkProps & { activeStyle?: CSSProperties; activeClassName?: string }
>(function WorkaroundNavLinkWithRef(
{
to,