Prepare for upgrade to React 19

Co-authored-by: ayumi-signal <ayumi@signal.org>
This commit is contained in:
Jamie
2025-12-23 13:42:56 -08:00
committed by GitHub
parent fe94991ea2
commit b405e3d83d
716 changed files with 3129 additions and 2881 deletions

View File

@@ -46,8 +46,8 @@ export function InstallScreenUpdateDialog({
currentVersion,
OS,
onClose = noop,
}: PropsType): JSX.Element | null {
const learnMoreLink = (parts: Array<string | JSX.Element>) => (
}: PropsType): React.JSX.Element | null {
const learnMoreLink = (parts: Array<string | React.JSX.Element>) => (
<a
key="signal-support"
href={UNSUPPORTED_OS_URL}
@@ -122,7 +122,7 @@ export function InstallScreenUpdateDialog({
dialogType === DialogType.DownloadedUpdate
) {
let title = i18n('icu:autoUpdateNewVersionTitle');
let actionText: string | JSX.Element = i18n(
let actionText: string | React.JSX.Element = i18n(
'icu:autoUpdateRestartButtonLabel'
);
let bodyText = i18n('icu:InstallScreenUpdateDialog--auto-update__body');
@@ -269,7 +269,7 @@ export function DownloadingModal({
}: {
i18n: LocalizerType;
width: number;
}): JSX.Element {
}): React.JSX.Element {
// Focus trap can't be used because there are no elements that can be
// focused within the modal.
return (