fix default user sign in without gmail scan

This commit is contained in:
heyethereum
2024-08-19 22:58:59 +08:00
parent cf7935baae
commit a7d4f693fa
2 changed files with 7 additions and 5 deletions

View File

@@ -1,2 +1,2 @@
NODE_ENV=development
BASE_URL=http://192.168.10.247:8080
BASE_URL=http://192.168.1.30:8080

View File

@@ -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',