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 views/Statistic
  • Loading branch information
dominikdosoudil committed Nov 21, 2024
1 parent 420a8bd commit f6460e2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/views/Statistic/Statistic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
getComponentType,
getUnhandledProps,
SUI,
useKeyOnly,
useValueAndKey,
getKeyOnly,
getValueAndKey,
} from '../../lib'
import StatisticGroup from './StatisticGroup'
import StatisticLabel from './StatisticLabel'
Expand Down Expand Up @@ -39,9 +39,9 @@ const Statistic = React.forwardRef(function (props, ref) {
'ui',
color,
size,
useValueAndKey(floated, 'floated'),
useKeyOnly(horizontal, 'horizontal'),
useKeyOnly(inverted, 'inverted'),
getValueAndKey(floated, 'floated'),
getKeyOnly(horizontal, 'horizontal'),
getKeyOnly(inverted, 'inverted'),
'statistic',
className,
)
Expand Down
10 changes: 5 additions & 5 deletions src/views/Statistic/StatisticGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
getComponentType,
getUnhandledProps,
SUI,
useKeyOnly,
useWidthProp,
getKeyOnly,
getWidthProp,
} from '../../lib'
import Statistic from './Statistic'

Expand All @@ -24,9 +24,9 @@ const StatisticGroup = React.forwardRef(function (props, ref) {
'ui',
color,
size,
useKeyOnly(horizontal, 'horizontal'),
useKeyOnly(inverted, 'inverted'),
useWidthProp(widths),
getKeyOnly(horizontal, 'horizontal'),
getKeyOnly(inverted, 'inverted'),
getWidthProp(widths),
'statistics',
className,
)
Expand Down
4 changes: 2 additions & 2 deletions src/views/Statistic/StatisticValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
customPropTypes,
getComponentType,
getUnhandledProps,
useKeyOnly,
getKeyOnly,
} from '../../lib'

/**
Expand All @@ -17,7 +17,7 @@ import {
const StatisticValue = React.forwardRef(function (props, ref) {
const { children, className, content, text } = props

const classes = cx(useKeyOnly(text, 'text'), 'value', className)
const classes = cx(getKeyOnly(text, 'text'), 'value', className)
const rest = getUnhandledProps(StatisticValue, props)
const ElementType = getComponentType(props)

Expand Down

0 comments on commit f6460e2

Please sign in to comment.