Keep reaction poppers visible at all times

This commit is contained in:
Evan Hahn 2021-08-20 14:36:27 -05:00 committed by GitHub
parent f11c366f53
commit 70d059beeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 94 additions and 14 deletions

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { isEmpty, mapValues, pick } from 'lodash';
import React from 'react';
import React, { RefObject } from 'react';
import { connect } from 'react-redux';
import memoizee from 'memoizee';
@ -66,11 +66,13 @@ function renderItem(
messageId: string,
conversationId: string,
onHeightChange: (messageId: string) => unknown,
actionProps: TimelineActionsType
actionProps: TimelineActionsType,
containerElementRef: RefObject<HTMLElement>
): JSX.Element {
return (
<SmartTimelineItem
{...actionProps}
containerElementRef={containerElementRef}
conversationId={conversationId}
id={messageId}
onHeightChange={createBoundOnHeightChange(onHeightChange, messageId)}