Upgrade to React 18

This commit is contained in:
Jamie Kyle 2025-04-29 13:27:33 -07:00 committed by GitHub
commit 14d098f40f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 1210 additions and 1796 deletions

View file

@ -2,6 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
import type { MouseEvent } from 'react';
import classNames from 'classnames';
import { Manager, Reference } from 'react-popper';
import Quill, { Delta } from '@signalapp/quill-cjs';
@ -950,7 +951,7 @@ export function CompositionInput(props: Props): React.ReactElement {
const getClassName = getClassNamesFor(BASE_CLASS_NAME, moduleClassName);
const onMouseDown = React.useCallback(
event => {
(event: MouseEvent) => {
const target = event.target as HTMLElement;
try {
// If the user is actually clicking the format menu, we drop this event