Skip to content

Commit 90f690c

Browse files
chore: replace deprecated classNameBuilder functions (replace prefix 'use' with 'get') in collections/Message
1 parent ca9917c commit 90f690c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/collections/Message/Message.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010
getComponentType,
1111
getUnhandledProps,
1212
SUI,
13-
useKeyOnly,
14-
useKeyOrValueAndKey,
13+
getKeyOnly,
14+
getKeyOrValueAndKey,
1515
useEventCallback,
1616
} from '../../lib'
1717
import Icon from '../../elements/Icon'
@@ -52,18 +52,18 @@ const Message = React.forwardRef(function (props, ref) {
5252
'ui',
5353
color,
5454
size,
55-
useKeyOnly(compact, 'compact'),
56-
useKeyOnly(error, 'error'),
57-
useKeyOnly(floating, 'floating'),
58-
useKeyOnly(hidden, 'hidden'),
59-
useKeyOnly(icon, 'icon'),
60-
useKeyOnly(info, 'info'),
61-
useKeyOnly(negative, 'negative'),
62-
useKeyOnly(positive, 'positive'),
63-
useKeyOnly(success, 'success'),
64-
useKeyOnly(visible, 'visible'),
65-
useKeyOnly(warning, 'warning'),
66-
useKeyOrValueAndKey(attached, 'attached'),
55+
getKeyOnly(compact, 'compact'),
56+
getKeyOnly(error, 'error'),
57+
getKeyOnly(floating, 'floating'),
58+
getKeyOnly(hidden, 'hidden'),
59+
getKeyOnly(icon, 'icon'),
60+
getKeyOnly(info, 'info'),
61+
getKeyOnly(negative, 'negative'),
62+
getKeyOnly(positive, 'positive'),
63+
getKeyOnly(success, 'success'),
64+
getKeyOnly(visible, 'visible'),
65+
getKeyOnly(warning, 'warning'),
66+
getKeyOrValueAndKey(attached, 'attached'),
6767
'message',
6868
className,
6969
)

0 commit comments

Comments
 (0)