Fix reaction burst skin tone variations
This commit is contained in:
parent
ae4fa04e95
commit
1834c09b28
4 changed files with 89 additions and 45 deletions
|
@ -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)}
|
||||
/>
|
||||
))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue