From 98984826af86fa27b2d444d77ee282826f7eb6a2 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 24 Aug 2022 14:49:02 +0200 Subject: [PATCH] core-components: update WorkaroundNavLink props type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Co-authored-by: blam Co-authored-by: Johan Haals Signed-off-by: Patrik Oldsberg --- packages/core-components/src/layout/Sidebar/Items.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core-components/src/layout/Sidebar/Items.tsx b/packages/core-components/src/layout/Sidebar/Items.tsx index 0413864084..5a0b92f558 100644 --- a/packages/core-components/src/layout/Sidebar/Items.tsx +++ b/packages/core-components/src/layout/Sidebar/Items.tsx @@ -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,