Explorar o código

Pin Recharts Dependency (#1934)

* Pin dependency

* Translated README.md file to Brazilian Portuguese (PT-BR) (#1936)

* Namespace Recharts + Victory Back With Depreciation Warning (#1928)

---------

Co-authored-by: Alek Petuskey <alekpetuskey@Aleks-MBP.attlocal.net>
Co-authored-by: Victor Moura <26290053+victorcmoura@users.noreply.github.com>
Alek Petuskey hai 1 ano
pai
achega
80bf48b872
Modificáronse 1 ficheiros con 2 adicións e 7 borrados
  1. 2 7
      reflex/components/graphing/recharts/recharts.py

+ 2 - 7
reflex/components/graphing/recharts/recharts.py

@@ -1,6 +1,5 @@
 """A component that wraps a recharts lib."""
 
-from typing import List
 
 from reflex.components.component import Component, NoSSRComponent
 
@@ -8,14 +7,10 @@ from reflex.components.component import Component, NoSSRComponent
 class Recharts(Component):
     """A component that wraps a victory lib."""
 
-    library = "recharts"
-
-    lib_dependencies: List[str] = ["recharts@2.8.0"]
+    library = "recharts@2.8.0"
 
 
 class RechartsCharts(NoSSRComponent):
     """A component that wraps a victory lib."""
 
-    library = "recharts"
-
-    lib_dependencies: List[str] = ["recharts@2.8.0"]
+    library = "recharts@2.8.0"