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

@@ -265,7 +265,7 @@ function QRCodeImage({
}: {
i18n: LocalizerType;
link: string;
}): JSX.Element {
}): React.JSX.Element {
const [isCopying, setIsCopying] = useState(false);
// Add a development-only feature to copy a QR code to the clipboard by double-clicking.
@@ -317,7 +317,7 @@ function RetryButton({
}: {
onClick: () => void;
children: ReactNode;
}): JSX.Element {
}): React.JSX.Element {
const onKeyDown = useCallback(
(ev: React.KeyboardEvent<HTMLButtonElement>) => {
if (ev.key === 'Enter') {
@@ -341,6 +341,6 @@ function RetryButton({
);
}
function Paragraph(children: React.ReactNode): JSX.Element {
function Paragraph(children: React.ReactNode): React.JSX.Element {
return <p>{children}</p>;
}