Skip to content

Commit

Permalink
Update markdown component map to use new rx.code_block.theme enum
Browse files Browse the repository at this point in the history
  • Loading branch information
masenf committed Sep 25, 2024
1 parent 4e4d36a commit be34013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reflex/components/markdown/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def add_imports(self) -> ImportDict | list[ImportDict]:
Returns:
The imports for the markdown component.
"""
from reflex.components.datadisplay.code import CodeBlock
from reflex.components.datadisplay.code import CodeBlock, Theme
from reflex.components.radix.themes.typography.code import Code

return [
Expand All @@ -173,7 +173,7 @@ def add_imports(self) -> ImportDict | list[ImportDict]:
component(_MOCK_ARG)._get_all_imports() # type: ignore
for component in self.component_map.values()
],
CodeBlock.create(theme="light")._get_imports(), # type: ignore,
CodeBlock.create(theme=Theme.light)._get_imports(), # type: ignore,
Code.create()._get_imports(), # type: ignore,
]

Expand Down

0 comments on commit be34013

Please sign in to comment.