Skip to content

Commit 2d06a91

Browse files
chore: replace deprecated useKeyOnly with getKeyOnly in modules/Progress
1 parent 6bab4a3 commit 2d06a91

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/modules/Progress/Progress.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010
getComponentType,
1111
getUnhandledProps,
1212
SUI,
13-
useKeyOnly,
14-
useValueAndKey,
13+
getKeyOnly,
14+
getValueAndKey,
1515
} from '../../lib'
1616

1717
/**
@@ -129,14 +129,14 @@ const Progress = React.forwardRef(function (props, ref) {
129129
'ui',
130130
color,
131131
size,
132-
useKeyOnly(active || indicating, 'active'),
133-
useKeyOnly(disabled, 'disabled'),
134-
useKeyOnly(error, 'error'),
135-
useKeyOnly(indicating, 'indicating'),
136-
useKeyOnly(inverted, 'inverted'),
137-
useKeyOnly(success || isAutoSuccess, 'success'),
138-
useKeyOnly(warning, 'warning'),
139-
useValueAndKey(attached, 'attached'),
132+
getKeyOnly(active || indicating, 'active'),
133+
getKeyOnly(disabled, 'disabled'),
134+
getKeyOnly(error, 'error'),
135+
getKeyOnly(indicating, 'indicating'),
136+
getKeyOnly(inverted, 'inverted'),
137+
getKeyOnly(success || isAutoSuccess, 'success'),
138+
getKeyOnly(warning, 'warning'),
139+
getValueAndKey(attached, 'attached'),
140140
'progress',
141141
className,
142142
)

0 commit comments

Comments
 (0)