소스 검색

fix default value for theme in ChakraProvider

Benedikt Bartscher 1 년 전
부모
커밋
1abc57c68b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      reflex/components/chakra/base.py

+ 2 - 2
reflex/components/chakra/base.py

@@ -2,7 +2,7 @@
 from __future__ import annotations
 
 from functools import lru_cache
-from typing import List, Literal
+from typing import List, Literal, Optional
 
 from reflex.components.component import Component
 from reflex.utils import imports
@@ -55,7 +55,7 @@ class ChakraProvider(ChakraComponent):
 
     tag = "ChakraProvider"
 
-    theme: Var[str]
+    theme: Optional[Var[str]] = None
 
     @classmethod
     def create(cls) -> Component: