Show update UI on backup version mismatch

This commit is contained in:
Fedor Indutny 2024-11-12 15:56:20 -08:00 committed by GitHub
parent 8557de20c2
commit 230ecdf7c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 344 additions and 66 deletions

View file

@ -6,7 +6,10 @@ import React, { useCallback } from 'react';
import classNames from 'classnames';
import type { LocalizerType } from '../../types/Util';
import { InstallScreenQRCodeError } from '../../types/InstallScreen';
import {
InstallScreenStep,
InstallScreenQRCodeError,
} from '../../types/InstallScreen';
import { missingCaseError } from '../../util/missingCaseError';
import type { Loadable } from '../../util/loadable';
import { LoadingState } from '../../util/loadable';
@ -33,6 +36,7 @@ export type PropsType = Readonly<{
isStaging: boolean;
retryGetQrCode: () => void;
startUpdate: () => void;
forceUpdate: () => void;
}>;
const getQrCodeClassName = getClassNamesFor(
@ -51,6 +55,7 @@ export function InstallScreenQrCodeNotScannedStep({
provisioningUrl,
retryGetQrCode,
startUpdate,
forceUpdate,
updates,
}: Readonly<PropsType>): ReactElement {
return (
@ -63,7 +68,9 @@ export function InstallScreenQrCodeNotScannedStep({
<InstallScreenUpdateDialog
i18n={i18n}
{...updates}
step={InstallScreenStep.QrCodeNotScanned}
startUpdate={startUpdate}
forceUpdate={forceUpdate}
currentVersion={currentVersion}
OS={OS}
/>