Refactor smart components

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
Jamie Kyle 2024-03-13 13:44:13 -07:00 committed by GitHub
parent 05c09ef769
commit 27b55e472d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
109 changed files with 3583 additions and 2629 deletions

View file

@ -2,9 +2,8 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { last } from 'lodash';
import React from 'react';
import React, { memo } from 'react';
import { useSelector } from 'react-redux';
import { TypingBubble } from '../../components/conversation/TypingBubble';
import { useGlobalModalActions } from '../ducks/globalModals';
import { getIntl, getTheme } from '../selectors/user';
@ -19,7 +18,7 @@ type ExternalProps = {
conversationId: string;
};
export function SmartTypingBubble({
export const SmartTypingBubble = memo(function SmartTypingBubble({
conversationId,
}: ExternalProps): JSX.Element {
const i18n = useSelector(getIntl);
@ -65,4 +64,4 @@ export function SmartTypingBubble({
showContactModal={showContactModal}
/>
);
}
});