Skip to content

Commit 420a8bd

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

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/views/Item/ItemContent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
getComponentType,
99
getUnhandledProps,
1010
SUI,
11-
useVerticalAlignProp,
11+
getVerticalAlignProp,
1212
} from '../../lib'
1313
import ItemHeader from './ItemHeader'
1414
import ItemDescription from './ItemDescription'
@@ -21,7 +21,7 @@ import ItemMeta from './ItemMeta'
2121
const ItemContent = React.forwardRef(function (props, ref) {
2222
const { children, className, content, description, extra, header, meta, verticalAlign } = props
2323

24-
const classes = cx(useVerticalAlignProp(verticalAlign), 'content', className)
24+
const classes = cx(getVerticalAlignProp(verticalAlign), 'content', className)
2525
const rest = getUnhandledProps(ItemContent, props)
2626
const ElementType = getComponentType(props)
2727

src/views/Item/ItemGroup.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
customPropTypes,
99
getComponentType,
1010
getUnhandledProps,
11-
useKeyOnly,
12-
useKeyOrValueAndKey,
11+
getKeyOnly,
12+
getKeyOrValueAndKey,
1313
} from '../../lib'
1414
import Item from './Item'
1515

@@ -21,10 +21,10 @@ const ItemGroup = React.forwardRef(function (props, ref) {
2121

2222
const classes = cx(
2323
'ui',
24-
useKeyOnly(divided, 'divided'),
25-
useKeyOnly(link, 'link'),
26-
useKeyOnly(unstackable, 'unstackable'),
27-
useKeyOrValueAndKey(relaxed, 'relaxed'),
24+
getKeyOnly(divided, 'divided'),
25+
getKeyOnly(link, 'link'),
26+
getKeyOnly(unstackable, 'unstackable'),
27+
getKeyOrValueAndKey(relaxed, 'relaxed'),
2828
'items',
2929
className,
3030
)

0 commit comments

Comments
 (0)