Skip to content

Commit

Permalink
Use new rx.EventHandler annotation syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
masenf committed Apr 1, 2024
1 parent a1a5a4d commit 109d50f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions custom_components/reflex_google_auth/google_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class GoogleLogin(rx.Component):
library = "@react-oauth/google"
tag = "GoogleLogin"

def get_event_triggers(self):
return {"on_success": lambda data: [data]}
on_success: rx.EventHandler[lambda data: [data]]

@classmethod
def create(cls, **props) -> "GoogleLogin":
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "reflex-google-auth"
version = "0.0.3"
version = "0.0.4"
description = "Reflex custom component google-auth"
readme = "README.md"
license = { text = "Apache-2.0" }
Expand All @@ -18,7 +18,7 @@ keywords = [
"reflex-custom-components"]

dependencies = [
"reflex>=0.4.2",
"reflex>=0.4.6a",
"google-auth[requests]",
]

Expand Down

0 comments on commit 109d50f

Please sign in to comment.