Skip to content

Commit

Permalink
Merge pull request #19 from reflex-dev/masenf/extend-theme
Browse files Browse the repository at this point in the history
Use new Var constructor for js expressions
  • Loading branch information
masenf authored Sep 30, 2024
2 parents 401b9f7 + 5402ac5 commit 605439f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "reflex-chakra"
version = "0.6.0"
version = "0.6.1"
description = "reflex using chakra components"
authors = [
"Elijah Ahianyo <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion reflex_chakra/components/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def create(cls) -> Component:
A new ChakraProvider component.
"""
return super().create(
theme=Var.create("extendTheme(theme)"),
theme=Var("extendTheme(theme)", _var_type=str),
)

def add_imports(self) -> ImportDict:
Expand Down
2 changes: 1 addition & 1 deletion reflex_chakra/components/navigation/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Link(ChakraComponent):
text: Var[str]

# What the link renders to.
as_: Var[Component] = Var.create("NextLink").to(Component)
as_: Var[Component] = Var("NextLink", _var_type=Component)

# If true, the link will open in new tab.
is_external: Var[bool]
Expand Down

0 comments on commit 605439f

Please sign in to comment.