Fix QR code error message

This commit is contained in:
minibits-cash
2023-12-05 16:14:34 +01:00
parent c37b3e5ffe
commit 875218d648
3 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ android {
applicationId "com.minibits_wallet"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 24
versionCode 25
versionName "0.1.5"
ndk {
abiFilters 'arm64-v8a', 'x86_64', 'x86', 'armeabi-v7a'
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "minibits_wallet",
"version": "0.1.4-beta.12",
"version": "0.1.5-beta.2",
"private": true,
"scripts": {
"android:clean": "cd android && ./gradlew clean",
+10 -7
View File
@@ -1026,22 +1026,25 @@ const SendAsQRCodeBlock = observer(function (props: {
return (
<View style={[$bottomModal, {marginHorizontal: spacing.small}]}>
<Text text={'Scan to receive'} />
<View style={$qrCodeContainer}>
{qrError ? (
<ListItem
text='Could not show QR code'
text='Could not display QR code.'
subText={qrError.message || ''}
leftIcon='faTriangleExclamation'
style={{alignSelf: 'stretch'}}
leftIconColor={colors.palette.angry500}
/>
) : (
<QRCode
size={spacing.screenWidth - spacing.large * 2} value={props.encodedTokenToSend}
onError={(error: any) => handleQrError(error)}
/>
<View style={$qrCodeContainer}>
<QRCode
size={spacing.screenWidth - spacing.large * 2} value={props.encodedTokenToSend}
onError={(error: any) => handleQrError(error)}
/>
</View>
)}
</View>
<View style={$buttonContainer}>
<Button
text="Share"