[Release 03-07-2023]fix:sharing timeout message displaying always

This commit is contained in:
Sri Kanth Kola
2023-07-13 14:30:09 +05:30
parent 737279b16a
commit 3355a89765
9 changed files with 18 additions and 16 deletions

View File

@@ -40,19 +40,21 @@ export const ProgressingModal: React.FC<ProgressingModalProps> = (props) => {
)}
</Column>
<Column style={{ display: props.timeoutHint ? 'flex' : 'none' }}>
<Column style={{ display: props.hint ? 'flex' : 'none' }}>
<Column style={Theme.SelectVcOverlayStyles.timeoutHintContainer}>
<Text
align="center"
color={Theme.Colors.TimoutText}
style={Theme.TextStyles.bold}>
{props.timeoutHint}
{props.hint}
</Text>
<Button
type="clear"
title={t('common:cancel')}
onPress={props.onCancel}
/>
{props.onCancel && (
<Button
type="clear"
title={t('common:cancel')}
onPress={props.onCancel}
/>
)}
</Column>
</Column>
</Centered>
@@ -65,7 +67,7 @@ export interface ProgressingModalProps {
isVisible: boolean;
title?: string;
label?: string;
timeoutHint?: string;
hint?: string;
onCancel?: () => void;
requester?: boolean;
progress?: boolean | number;

View File

@@ -436,7 +436,7 @@
"sentHint": "في انتظار أن يحفظ المستلم بطاقة أو يتجاهلها",
"sharing": {
"title": "مشاركة...",
"hint": "الرجاء الانتظار حتى يقبل الجهاز المتلقي المشاركة أو يرفضها.",
"hint": "يرجى الانتظار حتى نشارك البطاقة المختارة.",
"timeoutHint": "تستغرق مشاركتها وقتًا أطول من المتوقع. قد تكون هناك مشكلة في الاتصال."
},
"accepted": {

View File

@@ -436,7 +436,7 @@
"sentHint": "Waiting for receiver to save or discard your Card",
"sharing": {
"title": "Sharing...",
"hint": "Please wait for the receiving device to accept or reject the share.",
"hint": "Please wait while we share the chosen card.",
"timeoutHint": "It's taking longer than expected to share. There could be a problem with the connection."
},
"accepted": {

View File

@@ -440,7 +440,7 @@
"sentHint": "Naghihintay para sa receiver na i-save o itapon ang iyong card",
"sharing": {
"title": "Pagbabahagi...",
"hint": "Pakihintay na tanggapin o tanggihan ng tumatanggap na device ang pagbabahagi.",
"hint": "Mangyaring maghintay habang ibinabahagi namin ang napiling card.",
"timeoutHint": "Mas tumatagal kaysa sa inaasahan ang pagbabahagi. Maaaring may problema sa koneksyon."
},
"accepted": {

View File

@@ -436,7 +436,7 @@
"sentHint": "आपके {{vcLabel }} को सहेजने या छोड़ने के लिए रिसीवर की प्रतीक्षा की जा रही है",
"sharing": {
"title": "शेयरिंग...",
"hint": "शेयर को स्वीकार या अस्वीकार करने के लिए कृपया प्राप्त करने वाले डिवाइस की प्रतीक्षा करे।",
"hint": "कृपया तब तक प्रतीक्षा करें जब तक हम चयनित कार्ड साझा नहीं करे।",
"timeoutHint": "साझा करने में अपेक्षा से अधिक समय लग रहा है। कनेक्शन में कोई समस्या हो सकती है।"
},
"accepted": {

View File

@@ -433,7 +433,7 @@
"sentHint": "ನಿಮ್ಮ ಕಾರ್ಡ್ ಅನ್ನು ಉಳಿಸಲು ಅಥವಾ ತ್ಯಜಿಸಲು ರಿಸೀವರ್‌ಗಾಗಿ ನಿರೀಕ್ಷಿಸಲಾಗುತ್ತಿದೆ",
"sharing": {
"title": "ಹಂಚಿಕೆ...",
"hint": "ಸ್ವೀಕರಿಸುವ ಸಾಧನವು ಹಂಚಿಕೆಯನ್ನು ಸ್ವೀಕರಿಸಲು ಅಥವಾ ತಿರಸ್ಕರಿಸಲು ದಯವಿಟ್ಟು ನಿರೀಕ್ಷಿಸಿ.",
"hint": "ನಾವು ಆಯ್ಕೆಮಾಡಿದ ಕಾರ್ಡ್ ಅನ್ನು ಹಂಚಿಕೊಳ್ಳುವವರೆಗೆ ದಯವಿಟ್ಟು ನಿರೀಕ್ಷಿಸಿ.",
"timeoutHint": "ಹಂಚಿಕೊಳ್ಳಲು ನಿರೀಕ್ಷಿಸಿದ್ದಕ್ಕಿಂತ ಹೆಚ್ಚು ಸಮಯ ತೆಗೆದುಕೊಳ್ಳುತ್ತಿದೆ. ಸಂಪರ್ಕದಲ್ಲಿ ಸಮಸ್ಯೆ ಇರಬಹುದು."
},
"accepted": {

View File

@@ -367,7 +367,7 @@
"sentHint": "Esperando a que el receptor guarde o descarte tu tarjeta",
"sharing": {
"title": "Compartiendo...",
"hint": "Por favor, espera a que el dispositivo receptor acepte o rechace el intercambio.",
"hint": "Espere mientras compartimos la tarjeta elegida.",
"timeoutHint": "Está tomando más tiempo del esperado para compartir. Puede haber un problema con la conexión."
},
"accepted": {

View File

@@ -433,7 +433,7 @@
"sentHint": "ரிசீவர் உங்கள் அட்டை ஐ சேமிக்க அல்லது நிராகரிக்க காத்திருக்கிறது",
"sharing": {
"title": "பகிர்தல்...",
"hint": "பெறும் சாதனம் பங்கை ஏற்க அல்லது நிராகரிக்க காத்திருக்கவும்.",
"hint": "தேர்ந்தெடுத்த கார்டைப் பகிரும் வரை காத்திருக்கவும்.",
"timeoutHint": "பகிர்வதற்கு எதிர்பார்த்ததை விட அதிக நேரம் எடுக்கிறது. இணைப்பில் சிக்கல் இருக்கலாம்."
},
"accepted": {

View File

@@ -39,7 +39,7 @@ export const ScanLayout: React.FC = () => {
<ProgressingModal
isVisible={controller.statusOverlay != null}
title={controller.statusOverlay?.title}
timeoutHint={controller.statusOverlay?.hint}
hint={controller.statusOverlay?.hint}
label={controller.statusOverlay?.message}
onCancel={controller.statusOverlay?.onCancel}
progress={controller.statusOverlay?.progress}