Skip to content

Commit

Permalink
chore: temorrarily disable social login
Browse files Browse the repository at this point in the history
  • Loading branch information
Birloi Florian committed Dec 13, 2023
1 parent 7c2bf7e commit e0cd277
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions mobile/src/screens/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import React, { useEffect } from 'react';
import PageLayout from '../layouts/PageLayout';
import { Text } from '@ui-kitten/components';
import { Image, StyleSheet, Platform } from 'react-native';
import { Image, StyleSheet } from 'react-native';
import { View } from 'react-native';
import LogInButton from '../components/LogInButton';
import { useAuth } from '../hooks/useAuth';
import { CognitoHostedUIIdentityProvider } from '@aws-amplify/auth';
// import { CognitoHostedUIIdentityProvider } from '@aws-amplify/auth';
import { useTranslation } from 'react-i18next';
import GoogleButton from '../components/GoogleButton';
import AppleButton from '../components/AppleButton';
import FacebookButton from '../components/FacebookButton';
// import GoogleButton from '../components/GoogleButton';
// import AppleButton from '../components/AppleButton';
// import FacebookButton from '../components/FacebookButton';
import ScrollViewLayout from '../layouts/ScrollViewLayout';
import { ALLOW_FONT_SCALLING } from '../common/constants/constants';
import SignUpButton from '../components/SignUpButton';

const Landing = ({ navigation }: any) => {
const { isUserPending, loginWithSocial } = useAuth();
const { isUserPending } = useAuth();
const { t } = useTranslation('landing');

useEffect(() => {
Expand All @@ -42,7 +42,7 @@ const Landing = ({ navigation }: any) => {
)}`}</Text>
<View style={styles.buttonsContainer}>
<SignUpButton onPress={onRegisterButtonPress} />
{Platform.OS === 'ios' && (
{/* {Platform.OS === 'ios' && (
<AppleButton
onPress={loginWithSocial.bind(null, CognitoHostedUIIdentityProvider.Apple)}
/>
Expand All @@ -52,13 +52,13 @@ const Landing = ({ navigation }: any) => {
/>
<FacebookButton
onPress={loginWithSocial.bind(null, CognitoHostedUIIdentityProvider.Facebook)}
/>
/> */}
</View>
<View style={styles.separator} />
<LogInButton onPress={onLoginButtonPress} />
<Text allowFontScaling={ALLOW_FONT_SCALLING} style={styles.version}>
{/* <Text allowFontScaling={ALLOW_FONT_SCALLING} style={styles.version}>
v0.14.10
</Text>
</Text> */}
</View>
</ScrollViewLayout>
</PageLayout>
Expand Down

0 comments on commit e0cd277

Please sign in to comment.