Browse Source

use package path for dynamic icon (#5028)

Khaleel Al-Adhami 2 months ago
parent
commit
6c6201fbb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      reflex/components/lucide/icon.py

+ 1 - 1
reflex/components/lucide/icon.py

@@ -96,7 +96,7 @@ class DynamicIcon(LucideIconComponent):
         _imports = super()._get_imports()
         if self.library:
             _imports.pop(self.library)
-        _imports["lucide-react/dynamic"] = [ImportVar("DynamicIcon", install=False)]
+        _imports["lucide-react"] = [ImportVar("DynamicIcon", package_path="/dynamic")]
         return _imports