Skip to content
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

Merged
merged 17 commits into from
Apr 19, 2024
Merged

Conversation

vercia
Copy link
Contributor

@vercia vercia commented Mar 9, 2024

Description

  • add google sign in logic
  • update swagger

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

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

  • Test A
  • Test B

Screenshot(s)

Please attach some screenshot or a movie if provided changes affects UI.

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Checklist:

  • Add correct label to your pull request
  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link
Collaborator

@MateuszRostkowski MateuszRostkowski left a 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change undefined to null

Suggested change
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]
Copy link
Collaborator

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?

Suggested change
const { source, text } = SocialButtonVariants[type]
const { source, text } = socialButtonVariants[type]

Copy link
Contributor

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 ! 👍

Michał Baumruck added 2 commits April 12, 2024 10:08
@MateuszRostkowski MateuszRostkowski merged commit e52e60c into main Apr 19, 2024
1 check passed
@MateuszRostkowski MateuszRostkowski deleted the feat/google-sign-in-logic branch April 22, 2024 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants