fix default user sign in without gmail scan
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
BASE_URL=http://192.168.10.247:8080
|
BASE_URL=http://192.168.1.30:8080
|
||||||
@@ -34,18 +34,18 @@ const EmailScreen: React.FC = () => {
|
|||||||
if (userInfo && userInfo.email) {
|
if (userInfo && userInfo.email) {
|
||||||
setUserEmail(userInfo.email);
|
setUserEmail(userInfo.email);
|
||||||
|
|
||||||
if (userInfo.email.endsWith('@gmail.com')) {
|
if (userInfo.source === 'Google') {
|
||||||
startInboxScanning();
|
startInboxScanning();
|
||||||
} else {
|
} 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);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
} else {
|
} 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);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} 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);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -370,6 +370,8 @@ const styles = StyleSheet.create({
|
|||||||
errorText: {
|
errorText: {
|
||||||
color: '#ff69b4',
|
color: '#ff69b4',
|
||||||
fontSize: screenWidth * 0.04,
|
fontSize: screenWidth * 0.04,
|
||||||
|
fontWeight: 'bold',
|
||||||
|
textAlign: 'center',
|
||||||
},
|
},
|
||||||
rescanIndicator: {
|
rescanIndicator: {
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
|
|||||||
Reference in New Issue
Block a user