Skip to content

Commit 953624a

Browse files
authored
Add support for setting the getEmojiUrl for the Reactions component (#433)
1 parent d58f76e commit 953624a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Reactions/Reactions.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import {
66
MOUSE_EVENT_SOURCE,
77
useEmojiStyleConfig,
88
useReactionsConfig,
9-
useAllowExpandReactions
9+
useAllowExpandReactions,
10+
useGetEmojiUrlConfig
1011
} from '../../config/useConfig';
1112
import { DataEmoji } from '../../dataUtils/DataTypes';
1213
import { emojiByUnified } from '../../dataUtils/emojiSelectors';
@@ -24,6 +25,7 @@ export function Reactions() {
2425
useMouseDownHandlers(ReactionsRef, MOUSE_EVENT_SOURCE.REACTIONS);
2526
const emojiStyle = useEmojiStyleConfig();
2627
const allowExpandReactions = useAllowExpandReactions();
28+
const getEmojiUrl = useGetEmojiUrlConfig();
2729

2830
if (!reactionsOpen) {
2931
return null;
@@ -43,6 +45,7 @@ export function Reactions() {
4345
showVariations={false}
4446
className={cx(styles.emojiButton)}
4547
noBackground
48+
getEmojiUrl={getEmojiUrl}
4649
/>
4750
</li>
4851
))}

0 commit comments

Comments
 (0)