Skip to content

Commit

Permalink
show Google Button in sign in screen
Browse files Browse the repository at this point in the history
  • Loading branch information
micbaumr committed Apr 5, 2024
1 parent 30fe282 commit 5f6cf2a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .env

This file was deleted.

2 changes: 1 addition & 1 deletion src/design-system/components/GoogleButton/GoogleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type GoogleButtonProps = {

export const GoogleButton = ({ onPress, isDisabled }: GoogleButtonProps) => {
return (
<Button mb={6} onPress={onPress} variant="Outline" disabled={isDisabled}>
<Button mb={6} onPress={onPress} disabled={isDisabled}>
<Image source={googleIcon} alt="google-icon" />
<Text pl={3}>Log in with Google</Text>
</Button>
Expand Down
12 changes: 11 additions & 1 deletion src/screens/auth/SignInScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ import {
Version,
} from '@baca/components'
import { REGEX, isWeb } from '@baca/constants'
import { Box, Button, Center, Display, Row, Spacer, Text } from '@baca/design-system'
import {
Box,
Button,
Center,
Display,
Row,
SignInWithGoogle,
Spacer,
Text,
} from '@baca/design-system'
import { useCallback, useSignInForm, useTranslation } from '@baca/hooks'
import { useRouter } from 'expo-router'

Expand Down Expand Up @@ -104,6 +113,7 @@ export const SignInScreen = (): JSX.Element => {
>
{t('sign_in_screen.sign_in')}
</Button>
<SignInWithGoogle />
<Row alignItems="center">
<Text.SmRegular color="text.tertiary">
{t('sign_in_screen.do_not_have_an_account')}
Expand Down

0 comments on commit 5f6cf2a

Please sign in to comment.