From f6da78b131f3c8acfc4ae7564a17c7f7f3c06b91 Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Wed, 23 Jun 2021 19:03:12 +0200 Subject: [PATCH] Update CodeSnippets example --- .../src/jsMain/kotlin/com/sample/content/CodeSnippets.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt b/examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt index 950e27d3bf..0a74c3fdbb 100644 --- a/examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt +++ b/examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt @@ -9,6 +9,7 @@ import org.jetbrains.compose.web.dom.* import com.sample.HighlightJs import com.sample.components.ContainerInSection import com.sample.style.* +import org.jetbrains.compose.web.css.keywords.auto import org.w3c.dom.HTMLElement private fun HTMLElement.setHighlightedCode(code: String) { @@ -272,4 +273,4 @@ fun FormattedCodeSnippet(code: String, language: String = "kotlin") { private data class CodeSnippetData( val title: String, val source: String -) \ No newline at end of file +)