🩹(frontend) fix missing key in reactions toolbar
Emojis are a constant, so the reaction index remains stable, but using the index as a key isn't ideal.
This commit is contained in:
committed by
aleb_the_flash
parent
0498a9e7f9
commit
25506b6a2a
@@ -69,8 +69,9 @@ export const ReactionsToggle = () => {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{EMOJIS.map((emoji) => (
|
{EMOJIS.map((emoji, index) => (
|
||||||
<Button
|
<Button
|
||||||
|
key={index}
|
||||||
onPress={() => sendReaction(emoji)}
|
onPress={() => sendReaction(emoji)}
|
||||||
aria-label={t('send', { emoji })}
|
aria-label={t('send', { emoji })}
|
||||||
variant="quaternaryText"
|
variant="quaternaryText"
|
||||||
|
|||||||
Reference in New Issue
Block a user