Fix code block custom styles. (#36)

* Update Pynecone to v0.1.7
This commit is contained in:
Nikhil Rao 2022-12-07 20:28:22 -08:00 committed by GitHub
parent 7ec4b3f8fe
commit ccf987b185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

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