From 91a34975f7ae4cdf3abdcaad784a80f2681318f3 Mon Sep 17 00:00:00 2001 From: Cong Pham Date: Fri, 19 Jan 2024 23:47:38 +0700 Subject: [PATCH] update constant value --- src/components/EmojiPicker/EmojiPickerButton.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/EmojiPicker/EmojiPickerButton.js b/src/components/EmojiPicker/EmojiPickerButton.js index b056ccb22875..832715e3214c 100644 --- a/src/components/EmojiPicker/EmojiPickerButton.js +++ b/src/components/EmojiPicker/EmojiPickerButton.js @@ -11,6 +11,7 @@ import useThemeStyles from '@hooks/useThemeStyles'; import compose from '@libs/compose'; import getButtonState from '@libs/getButtonState'; import * as EmojiPickerAction from '@userActions/EmojiPickerAction'; +import CONST from '@src/CONST'; const propTypes = { /** Flag to disable the emoji picker button */ @@ -58,8 +59,8 @@ function EmojiPickerButton(props) { props.onEmojiSelected, emojiPopoverAnchor, { - horizontal: 'right', - vertical: 'bottom', + horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT, + vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.BOTTOM, shiftVertical: props.shiftVertical, }, () => {},