From 655c090b1682c14126929c22a6ee9a818da660d8 Mon Sep 17 00:00:00 2001 From: Jo Franchetti Date: Thu, 16 May 2024 22:04:28 +0100 Subject: [PATCH 1/7] fix formatting of copy button, remove console log, reorder basic list --- src/components/DenoByExample/ByExample.tsx | 90 ++++++++--- src/components/DenoByExample/Sidebar.tsx | 57 ++++--- src/components/DenoByExample/index.tsx | 174 ++++++++++++--------- 3 files changed, 197 insertions(+), 124 deletions(-) diff --git a/src/components/DenoByExample/ByExample.tsx b/src/components/DenoByExample/ByExample.tsx index 5791437ea..c3cecb659 100644 --- a/src/components/DenoByExample/ByExample.tsx +++ b/src/components/DenoByExample/ByExample.tsx @@ -1,7 +1,12 @@ import React from "react"; import Layout from "@theme/Layout"; import Footer from "@theme/Footer"; -import { parseExample, DIFFICULTIES, TAGS, ExampleSnippet } from '../../plugins/deno-by-example/example'; +import { + DIFFICULTIES, + ExampleSnippet, + parseExample, + TAGS, +} from "../../plugins/deno-by-example/example"; import CodeBlock from "@theme/CodeBlock"; export default function ByExample({ example, examplesList }) { @@ -28,9 +33,9 @@ export default function ByExample({ example, examplesList }) { }, data: [ parsed, - content - ] - } + content, + ], + }; return ( By Example