Fix reaction burst skin tone variations

This commit is contained in:
ayumi-signal 2024-04-24 16:08:43 -07:00 committed by GitHub
parent ae4fa04e95
commit 1834c09b28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 89 additions and 45 deletions

View file

@ -18,7 +18,7 @@ import { CallReactionBurstEmoji } from './CallReactionBurstEmoji';
const LIFETIME = 3000;
export type CallReactionBurstType = {
value: string;
values: Array<string>;
};
type CallReactionBurstStateType = CallReactionBurstType & {
@ -124,10 +124,10 @@ export function CallReactionBurstProvider({
<CallReactionBurstContext.Provider value={contextValue}>
{createPortal(
<div className="CallReactionBursts">
{bursts.map(({ value, key }) => (
{bursts.map(({ values, key }) => (
<CallReactionBurstEmoji
key={key}
value={value}
values={values}
onAnimationEnd={() => hideBurst(key)}
/>
))}