Fun picker improvements

This commit is contained in:
Jamie Kyle
2025-03-26 12:35:32 -07:00
committed by GitHub
parent 427f91f903
commit b0653d06fe
142 changed files with 3581 additions and 1280 deletions

View File

@@ -166,8 +166,9 @@ function InstallScreenQrCode(
case LoadingState.Loading:
contents = <Spinner size="24px" svgSize="small" />;
break;
case LoadingState.LoadFailed:
switch (props.error) {
case LoadingState.LoadFailed: {
const { error } = props;
switch (error) {
case InstallScreenQRCodeError.Timeout:
contents = (
<>
@@ -229,9 +230,10 @@ function InstallScreenQrCode(
);
break;
default:
throw missingCaseError(props.error);
throw missingCaseError(error);
}
break;
}
case LoadingState.Loaded:
contents = <QRCodeImage i18n={i18n} link={props.value} />;
break;