From a7d4f693faf56e6a352fcc07c59e411eecf032e9 Mon Sep 17 00:00:00 2001 From: heyethereum Date: Mon, 19 Aug 2024 22:58:59 +0800 Subject: [PATCH] fix default user sign in without gmail scan --- .env.development | 2 +- screens/EmailScreen.tsx | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.env.development b/.env.development index f8cda80..34fe0a0 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,2 @@ NODE_ENV=development -BASE_URL=http://192.168.10.247:8080 \ No newline at end of file +BASE_URL=http://192.168.1.30:8080 \ No newline at end of file diff --git a/screens/EmailScreen.tsx b/screens/EmailScreen.tsx index c622056..2947d51 100644 --- a/screens/EmailScreen.tsx +++ b/screens/EmailScreen.tsx @@ -34,18 +34,18 @@ const EmailScreen: React.FC = () => { if (userInfo && userInfo.email) { setUserEmail(userInfo.email); - if (userInfo.email.endsWith('@gmail.com')) { + if (userInfo.source === 'Google') { startInboxScanning(); } else { - setEmptyMessage('Please login using a Gmail account to view Emails'); + setEmptyMessage('Please Sign in with Google to scan your Gmails for QR Codes'); setLoading(false); } } else { - setEmptyMessage('Please login using a Gmail account to view Emails'); + setEmptyMessage('Please Sign in with Google to scan your Gmails for QR Codes'); setLoading(false); } } catch (error) { - setEmptyMessage('Please login using a Gmail account to view Emails'); + setEmptyMessage('Please Sign in with Google to scan your Gmails for QR Codes'); setLoading(false); } }; @@ -370,6 +370,8 @@ const styles = StyleSheet.create({ errorText: { color: '#ff69b4', fontSize: screenWidth * 0.04, + fontWeight: 'bold', + textAlign: 'center', }, rescanIndicator: { justifyContent: 'center',