@@ -11,16 +11,17 @@ import Tooltip from '@components/Tooltip/PopoverAnchorTooltip';
1111import useLocalize from '@hooks/useLocalize' ;
1212import useStyleUtils from '@hooks/useStyleUtils' ;
1313import useThemeStyles from '@hooks/useThemeStyles' ;
14+ import { hideEmojiPicker , isEmojiPickerVisible , resetEmojiPopoverAnchor , showEmojiPicker } from '@libs/actions/EmojiPickerAction' ;
15+ import type { OnModalHideValue } from '@libs/actions/EmojiPickerAction' ;
1416import getButtonState from '@libs/getButtonState' ;
15- import * as EmojiPickerAction from '@userActions/EmojiPickerAction' ;
1617import CONST from '@src/CONST' ;
1718
1819type EmojiPickerButtonDropdownProps = {
1920 /** Flag to disable the emoji picker button */
2021 isDisabled ?: boolean ;
2122 accessibilityLabel ?: string ;
2223 role ?: string ;
23- onModalHide : EmojiPickerAction . OnModalHideValue ;
24+ onModalHide : OnModalHideValue ;
2425 onInputChange : ( emoji : string ) => void ;
2526 value ?: string ;
2627 disabled ?: boolean ;
@@ -39,14 +40,14 @@ function EmojiPickerButtonDropdown(
3940 const emojiPopoverAnchor = useRef ( null ) ;
4041 const { translate} = useLocalize ( ) ;
4142
42- useEffect ( ( ) => EmojiPickerAction . resetEmojiPopoverAnchor , [ ] ) ;
43+ useEffect ( ( ) => resetEmojiPopoverAnchor , [ ] ) ;
4344 const onPress = ( ) => {
44- if ( EmojiPickerAction . isEmojiPickerVisible ( ) ) {
45- EmojiPickerAction . hideEmojiPicker ( ) ;
45+ if ( isEmojiPickerVisible ( ) ) {
46+ hideEmojiPicker ( ) ;
4647 return ;
4748 }
4849
49- EmojiPickerAction . showEmojiPicker (
50+ showEmojiPicker (
5051 onModalHide ,
5152 ( emoji ) => onInputChange ( emoji ) ,
5253 emojiPopoverAnchor ,
0 commit comments