Skip to content

Commit dd40447

Browse files
authored
pin dynamic lucide icon (#5439)
* pin dynamic lucide icon * pyi
1 parent cd25cb4 commit dd40447

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pyi_hashes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"reflex/components/el/elements/tables.pyi": "60ce25fd601003dfadd78d3081b86795",
4040
"reflex/components/el/elements/typography.pyi": "3c4d82d4c61c84af85023d180631b081",
4141
"reflex/components/gridjs/datatable.pyi": "1b8232fd3e839c6ae772db3d211cd632",
42-
"reflex/components/lucide/icon.pyi": "b544769b37f1155ce97a170a21d1bcad",
42+
"reflex/components/lucide/icon.pyi": "ebc4cf89627f0ac001b695bffb11d43d",
4343
"reflex/components/markdown/markdown.pyi": "3c818ed8f3a99edcba66ff00ec313f13",
4444
"reflex/components/moment/moment.pyi": "77e40c9afd511fb046134e2581d8a3bd",
4545
"reflex/components/plotly/plotly.pyi": "8362d4dd3d5c57af79a8bc8d2dbe82c9",

reflex/components/lucide/icon.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
from reflex.vars.base import LiteralVar, Var
77
from reflex.vars.sequence import LiteralStringVar, StringVar
88

9+
LUCIDE_LIBRARY = "lucide-react@0.511.0"
10+
911

1012
class LucideIconComponent(Component):
1113
"""Lucide Icon Component."""
1214

13-
library = "lucide-react@0.511.0"
15+
library = LUCIDE_LIBRARY
1416

1517

1618
class Icon(LucideIconComponent):
@@ -96,7 +98,7 @@ def _get_imports(self):
9698
_imports = super()._get_imports()
9799
if self.library:
98100
_imports.pop(self.library)
99-
_imports["lucide-react"] = [
101+
_imports[LUCIDE_LIBRARY] = [
100102
ImportVar("DynamicIcon", package_path="/dynamic.mjs")
101103
]
102104
return _imports

0 commit comments

Comments
 (0)