From 6668188ac3ba7d46917aeb6e5a8f08f9be8c9ce6 Mon Sep 17 00:00:00 2001 From: Gustavo Santos Date: Sat, 1 Oct 2022 20:38:02 -0300 Subject: [PATCH] feat(simple list): removed deprecated prop --- .../react-core/src/components/SimpleList/SimpleListItem.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/react-core/src/components/SimpleList/SimpleListItem.tsx b/packages/react-core/src/components/SimpleList/SimpleListItem.tsx index 7caee0e0c9a..6792f9a54de 100644 --- a/packages/react-core/src/components/SimpleList/SimpleListItem.tsx +++ b/packages/react-core/src/components/SimpleList/SimpleListItem.tsx @@ -18,8 +18,6 @@ export interface SimpleListItemProps { componentProps?: any; /** Indicates if the link is current/highlighted */ isActive?: boolean; - /** @deprecated please use isActive instead */ - isCurrent?: boolean; /** OnClick callback for the SimpleList item */ onClick?: (event: React.MouseEvent | React.ChangeEvent) => void; /** Type of button SimpleList item */ @@ -35,7 +33,6 @@ export class SimpleListItem extends React.Component { children: null, className: '', isActive: false, - isCurrent: false, component: 'button', componentClassName: '', type: 'button', @@ -46,7 +43,6 @@ export class SimpleListItem extends React.Component { render() { const { children, - isCurrent, isActive, className, component: Component, @@ -64,7 +60,7 @@ export class SimpleListItem extends React.Component { {({ currentRef, updateCurrentRef, isControlled }) => { const isButton = Component === 'button'; const isCurrentItem = - this.ref && currentRef && isControlled ? currentRef.current === this.ref.current : isActive || isCurrent; + this.ref && currentRef && isControlled ? currentRef.current === this.ref.current : isActive; const additionalComponentProps = isButton ? {