mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 13:20:48 +00:00
ICU types
This commit is contained in:
@@ -135,7 +135,7 @@ function InstallScreenQrCode(
|
||||
id="icu:Install__qr-failed-load"
|
||||
components={{
|
||||
// eslint-disable-next-line react/no-unstable-nested-components
|
||||
retry: children => (
|
||||
retry: (parts: Array<string | JSX.Element>) => (
|
||||
<button
|
||||
className={getQrCodeClassName('__link')}
|
||||
onClick={props.retryGetQrCode}
|
||||
@@ -148,7 +148,7 @@ function InstallScreenQrCode(
|
||||
}}
|
||||
type="button"
|
||||
>
|
||||
{children}
|
||||
{parts}
|
||||
</button>
|
||||
),
|
||||
}}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
import React from 'react';
|
||||
import { noop } from 'lodash';
|
||||
import type { FormatXMLElementFn } from 'intl-messageformat';
|
||||
import formatFileSize from 'filesize';
|
||||
|
||||
import { DialogType } from '../../types/Dialogs';
|
||||
@@ -36,14 +35,14 @@ export function InstallScreenUpdateDialog({
|
||||
currentVersion,
|
||||
OS,
|
||||
}: PropsType): JSX.Element | null {
|
||||
const learnMoreLink: FormatXMLElementFn<JSX.Element | string> = children => (
|
||||
const learnMoreLink = (parts: Array<string | JSX.Element>) => (
|
||||
<a
|
||||
key="signal-support"
|
||||
href={UNSUPPORTED_OS_URL}
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
{children}
|
||||
{parts}
|
||||
</a>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user