Skip to content

Commit f6460e2

Browse files
chore: replace deprecated classNameBuilder functions (replace prefix 'use' with 'get') in views/Statistic
1 parent 420a8bd commit f6460e2

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/views/Statistic/Statistic.js

+5-5
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
import StatisticGroup from './StatisticGroup'
1717
import StatisticLabel from './StatisticLabel'
@@ -39,9 +39,9 @@ const Statistic = React.forwardRef(function (props, ref) {
3939
'ui',
4040
color,
4141
size,
42-
useValueAndKey(floated, 'floated'),
43-
useKeyOnly(horizontal, 'horizontal'),
44-
useKeyOnly(inverted, 'inverted'),
42+
getValueAndKey(floated, 'floated'),
43+
getKeyOnly(horizontal, 'horizontal'),
44+
getKeyOnly(inverted, 'inverted'),
4545
'statistic',
4646
className,
4747
)

src/views/Statistic/StatisticGroup.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
getComponentType,
1010
getUnhandledProps,
1111
SUI,
12-
useKeyOnly,
13-
useWidthProp,
12+
getKeyOnly,
13+
getWidthProp,
1414
} from '../../lib'
1515
import Statistic from './Statistic'
1616

@@ -24,9 +24,9 @@ const StatisticGroup = React.forwardRef(function (props, ref) {
2424
'ui',
2525
color,
2626
size,
27-
useKeyOnly(horizontal, 'horizontal'),
28-
useKeyOnly(inverted, 'inverted'),
29-
useWidthProp(widths),
27+
getKeyOnly(horizontal, 'horizontal'),
28+
getKeyOnly(inverted, 'inverted'),
29+
getWidthProp(widths),
3030
'statistics',
3131
className,
3232
)

src/views/Statistic/StatisticValue.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
customPropTypes,
99
getComponentType,
1010
getUnhandledProps,
11-
useKeyOnly,
11+
getKeyOnly,
1212
} from '../../lib'
1313

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

20-
const classes = cx(useKeyOnly(text, 'text'), 'value', className)
20+
const classes = cx(getKeyOnly(text, 'text'), 'value', className)
2121
const rest = getUnhandledProps(StatisticValue, props)
2222
const ElementType = getComponentType(props)
2323

0 commit comments

Comments
 (0)