Fun picker improvements

This commit is contained in:
Jamie Kyle 2025-03-26 12:35:32 -07:00 committed by GitHub
commit b0653d06fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;