Skip to content

Commit

Permalink
chore: replace deprecated classNameBuilder functions (replace prefix …
Browse files Browse the repository at this point in the history
…'use' with 'get') in elements/Step
  • Loading branch information
dominikdosoudil committed Nov 21, 2024
1 parent 3a6496d commit 054ada6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions src/elements/Step/Step.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
customPropTypes,
getComponentType,
getUnhandledProps,
useKeyOnly,
getKeyOnly,
useEventCallback,
} from '../../lib'
import Icon from '../Icon'
Expand Down Expand Up @@ -44,10 +44,10 @@ const Step = React.forwardRef(function (props, ref) {
})

const classes = cx(
useKeyOnly(active, 'active'),
useKeyOnly(completed, 'completed'),
useKeyOnly(disabled, 'disabled'),
useKeyOnly(link, 'link'),
getKeyOnly(active, 'active'),
getKeyOnly(completed, 'completed'),
getKeyOnly(disabled, 'disabled'),
getKeyOnly(link, 'link'),
'step',
className,
)
Expand Down
22 changes: 11 additions & 11 deletions src/elements/Step/StepGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import {
getUnhandledProps,
numberToWordMap,
SUI,
useKeyOnly,
useKeyOrValueAndKey,
useValueAndKey,
useWidthProp,
getKeyOnly,
getKeyOrValueAndKey,
getValueAndKey,
getWidthProp,
} from '../../lib'
import Step from './Step'

Expand All @@ -40,13 +40,13 @@ const StepGroup = React.forwardRef(function (props, ref) {
const classes = cx(
'ui',
size,
useKeyOnly(fluid, 'fluid'),
useKeyOnly(ordered, 'ordered'),
useKeyOnly(unstackable, 'unstackable'),
useKeyOnly(vertical, 'vertical'),
useKeyOrValueAndKey(attached, 'attached'),
useValueAndKey(stackable, 'stackable'),
useWidthProp(widths),
getKeyOnly(fluid, 'fluid'),
getKeyOnly(ordered, 'ordered'),
getKeyOnly(unstackable, 'unstackable'),
getKeyOnly(vertical, 'vertical'),
getKeyOrValueAndKey(attached, 'attached'),
getValueAndKey(stackable, 'stackable'),
getWidthProp(widths),
'steps',
className,
)
Expand Down

0 comments on commit 054ada6

Please sign in to comment.