Skip to content

Commit 3dd2323

Browse files
gefgujenny-s51
authored andcommitted
feat(simple list): removed deprecated prop (patternfly#8132)
1 parent 44af730 commit 3dd2323

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/react-core/src/components/SimpleList/SimpleListItem.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export interface SimpleListItemProps {
1818
componentProps?: any;
1919
/** Indicates if the link is current/highlighted */
2020
isActive?: boolean;
21-
/** @deprecated please use isActive instead */
22-
isCurrent?: boolean;
2321
/** OnClick callback for the SimpleList item */
2422
onClick?: (event: React.MouseEvent | React.ChangeEvent) => void;
2523
/** Type of button SimpleList item */
@@ -35,7 +33,6 @@ export class SimpleListItem extends React.Component<SimpleListItemProps> {
3533
children: null,
3634
className: '',
3735
isActive: false,
38-
isCurrent: false,
3936
component: 'button',
4037
componentClassName: '',
4138
type: 'button',
@@ -46,7 +43,6 @@ export class SimpleListItem extends React.Component<SimpleListItemProps> {
4643
render() {
4744
const {
4845
children,
49-
isCurrent,
5046
isActive,
5147
className,
5248
component: Component,
@@ -64,7 +60,7 @@ export class SimpleListItem extends React.Component<SimpleListItemProps> {
6460
{({ currentRef, updateCurrentRef, isControlled }) => {
6561
const isButton = Component === 'button';
6662
const isCurrentItem =
67-
this.ref && currentRef && isControlled ? currentRef.current === this.ref.current : isActive || isCurrent;
63+
this.ref && currentRef && isControlled ? currentRef.current === this.ref.current : isActive;
6864

6965
const additionalComponentProps = isButton
7066
? {

0 commit comments

Comments
 (0)