mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 11:51:52 +03:00
added intl for qr failure warning
This commit is contained in:
parent
54d5e55406
commit
9bfe9f392d
@ -110,22 +110,26 @@ export const QRModal = ({}: QRModalProps) => {
|
|||||||
_onClose();
|
_onClose();
|
||||||
navigate(deepLinkData);
|
navigate(deepLinkData);
|
||||||
} else {
|
} else {
|
||||||
Alert.alert('Unsupported URL!', 'Please scan a valid ecency url.', [
|
Alert.alert(
|
||||||
{
|
intl.formatMessage({ id: 'qr.unsupported_alert_title' }),
|
||||||
text: 'Close',
|
intl.formatMessage({ id: 'qr.unsupported_alert_desc' }),
|
||||||
onPress: () => {
|
[
|
||||||
_onClose();
|
{
|
||||||
|
text: 'Close',
|
||||||
|
onPress: () => {
|
||||||
|
_onClose();
|
||||||
|
},
|
||||||
|
style: 'cancel',
|
||||||
},
|
},
|
||||||
style: 'cancel',
|
{
|
||||||
},
|
text: 'Rescan',
|
||||||
{
|
onPress: () => {
|
||||||
text: 'Rescan',
|
setIsScannerActive(true);
|
||||||
onPress: () => {
|
scannerRef.current?.reactivate();
|
||||||
setIsScannerActive(true);
|
},
|
||||||
scannerRef.current?.reactivate();
|
|
||||||
},
|
},
|
||||||
},
|
],
|
||||||
]);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -826,7 +826,9 @@
|
|||||||
"qr":{
|
"qr":{
|
||||||
"qr_scan": "QR Scan",
|
"qr_scan": "QR Scan",
|
||||||
"open": "Open URL",
|
"open": "Open URL",
|
||||||
"detected_url": "Detected URL"
|
"detected_url": "Detected URL",
|
||||||
|
"unsupported_alert_title": "Unsupported URL!",
|
||||||
|
"unsupported_alert_desc": "Please scan a valid ecency url."
|
||||||
},
|
},
|
||||||
"history": {
|
"history": {
|
||||||
"edit": "Edit History",
|
"edit": "Edit History",
|
||||||
|
Loading…
Reference in New Issue
Block a user