mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 07:36:00 +01:00
Prepare for upgrade to React 19
Co-authored-by: ayumi-signal <ayumi@signal.org>
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user