Ver código fonte

Fix code block custom styles. (#36)

* Update Pynecone to v0.1.7
Nikhil Rao 2 anos atrás
pai
commit
ccf987b185

+ 2 - 1
pynecone/components/datadisplay/code.py

@@ -5,6 +5,7 @@ from typing import Dict
 from pynecone import utils
 from pynecone.components.component import Component, ImportDict
 from pynecone.components.libs.chakra import ChakraComponent
+from pynecone.style import Style
 from pynecone.var import Var
 
 # Path to the prism styles.
@@ -70,7 +71,7 @@ class CodeBlock(Component):
         return super().create(
             *children,
             **props,
-            custom_style=custom_style,
+            custom_style=Style(custom_style),
         )
 
     def _add_style(self, style):

+ 1 - 1
pynecone/components/typography/span.py

@@ -1,4 +1,4 @@
-"""A text component."""
+"""A span component."""
 from __future__ import annotations
 
 from pynecone.components.libs.chakra import ChakraComponent

+ 1 - 1
pyproject.toml

@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "pynecone-io"
-version = "0.1.6"
+version = "0.1.7"
 description = "The easiest way to build web apps."
 license = "Apache-2.0"
 authors = [