mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 23:34:14 +01:00
React 19
This commit is contained in:
@@ -60,7 +60,7 @@ export const SmartChatsTab = memo(function SmartChatsTab() {
|
||||
useChatFolderActions();
|
||||
const { saveDraftRecordingIfNeeded } = useComposerActions();
|
||||
|
||||
const lastOpenedConversationId = useRef<string | undefined>();
|
||||
const lastOpenedConversationId = useRef<string | undefined>(undefined);
|
||||
|
||||
useEffect(() => {
|
||||
if (selectedConversationId !== lastOpenedConversationId.current) {
|
||||
|
||||
@@ -263,7 +263,7 @@ function ContactContextMenu({
|
||||
export function SmartMediaContextMenu({
|
||||
mediaItem,
|
||||
children,
|
||||
}: PropsType): JSX.Element {
|
||||
}: PropsType): React.JSX.Element {
|
||||
const i18n = useSelector(getIntl);
|
||||
|
||||
const { showConversation } = useConversationsActions();
|
||||
|
||||
@@ -31,7 +31,7 @@ export type PropsType = Readonly<{
|
||||
function renderContextMenu(
|
||||
mediaItem: GenericMediaItemType,
|
||||
children: ReactNode
|
||||
): JSX.Element {
|
||||
): React.JSX.Element {
|
||||
return (
|
||||
<SmartMediaContextMenu mediaItem={mediaItem}>
|
||||
{children}
|
||||
|
||||
@@ -13,7 +13,7 @@ export type SmartSafetyNumberModalProps = {
|
||||
contactID: string;
|
||||
};
|
||||
|
||||
function renderSafetyNumberViewer(props: SafetyNumberProps): JSX.Element {
|
||||
function renderSafetyNumberViewer(props: SafetyNumberProps): React.JSX.Element {
|
||||
return <SmartSafetyNumberViewer key={props.contactID} {...props} />;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ import { DataReader } from '../../sql/Client.preload.js';
|
||||
import { isInternalFeaturesEnabled } from '../../util/isInternalFeaturesEnabled.dom.js';
|
||||
|
||||
export type SmartTimelineItemProps = {
|
||||
containerElementRef: RefObject<HTMLElement>;
|
||||
containerElementRef: RefObject<HTMLElement | null>;
|
||||
containerWidthBreakpoint: WidthBreakpoint;
|
||||
conversationId: string;
|
||||
interactivity: MessageInteractivity;
|
||||
|
||||
Reference in New Issue
Block a user