-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEAT: add google sign in button #17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@micbaumr Please see my suggestions :D
import { NativeGoogleButton } from './NativeGoogleButton' | ||
|
||
export const GoogleButton = () => { | ||
if (isExpoGo || isWeb) return undefined //TODO: Add google button for web |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change undefined
to null
if (isExpoGo || isWeb) return undefined //TODO: Add google button for web | |
// TODO: Add google button for web | |
if (isExpoGo || isWeb) return null |
export const SocialButton: FC<SocialButtonProps> = ({ type = 'google', ...rest }) => { | ||
const { colorScheme } = useColorScheme() | ||
|
||
const { source, text } = SocialButtonVariants[type] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't socialButtonVariants
be from lower case?
const { source, text } = SocialButtonVariants[type] | |
const { source, text } = socialButtonVariants[type] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, its not a type either a component. Good catch ! 👍
Description
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Screenshot(s)
Please attach some screenshot or a movie if provided changes affects UI.
Test Configuration:
Checklist: