fix default value for theme in ChakraProvider
This commit is contained in:
parent
5c584da4ef
commit
1abc57c68b
@ -2,7 +2,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from functools import lru_cache
|
from functools import lru_cache
|
||||||
from typing import List, Literal
|
from typing import List, Literal, Optional
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.utils import imports
|
from reflex.utils import imports
|
||||||
@ -55,7 +55,7 @@ class ChakraProvider(ChakraComponent):
|
|||||||
|
|
||||||
tag = "ChakraProvider"
|
tag = "ChakraProvider"
|
||||||
|
|
||||||
theme: Var[str]
|
theme: Optional[Var[str]] = None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create(cls) -> Component:
|
def create(cls) -> Component:
|
||||||
|
Loading…
Reference in New Issue
Block a user