Browse Source

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 1 year ago
parent
commit
80bf48b872
1 changed files with 2 additions and 7 deletions
  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"