Refactor smart components
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
parent
05c09ef769
commit
27b55e472d
109 changed files with 3583 additions and 2629 deletions
|
@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue