From f6460e2ae45f56f87e0359018612b5dc682196bd Mon Sep 17 00:00:00 2001 From: Dominik Dosoudil Date: Thu, 21 Nov 2024 13:08:08 +0100 Subject: [PATCH] chore: replace deprecated classNameBuilder functions (replace prefix 'use' with 'get') in views/Statistic --- src/views/Statistic/Statistic.js | 10 +++++----- src/views/Statistic/StatisticGroup.js | 10 +++++----- src/views/Statistic/StatisticValue.js | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/Statistic/Statistic.js b/src/views/Statistic/Statistic.js index 698904ec2e..d962f30874 100644 --- a/src/views/Statistic/Statistic.js +++ b/src/views/Statistic/Statistic.js @@ -10,8 +10,8 @@ import { getComponentType, getUnhandledProps, SUI, - useKeyOnly, - useValueAndKey, + getKeyOnly, + getValueAndKey, } from '../../lib' import StatisticGroup from './StatisticGroup' import StatisticLabel from './StatisticLabel' @@ -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, ) diff --git a/src/views/Statistic/StatisticGroup.js b/src/views/Statistic/StatisticGroup.js index eea559981e..b4945c19c1 100644 --- a/src/views/Statistic/StatisticGroup.js +++ b/src/views/Statistic/StatisticGroup.js @@ -9,8 +9,8 @@ import { getComponentType, getUnhandledProps, SUI, - useKeyOnly, - useWidthProp, + getKeyOnly, + getWidthProp, } from '../../lib' import Statistic from './Statistic' @@ -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, ) diff --git a/src/views/Statistic/StatisticValue.js b/src/views/Statistic/StatisticValue.js index 7654c5a503..f18bced601 100644 --- a/src/views/Statistic/StatisticValue.js +++ b/src/views/Statistic/StatisticValue.js @@ -8,7 +8,7 @@ import { customPropTypes, getComponentType, getUnhandledProps, - useKeyOnly, + getKeyOnly, } from '../../lib' /** @@ -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)