From 8a73b84f1be0706207585f5de65b95e0e1039527 Mon Sep 17 00:00:00 2001 From: Eric Crooks Date: Tue, 22 Aug 2023 22:13:31 -0400 Subject: [PATCH 1/2] fix: code tabs not working (#201) * fix: code tabs not working * chore: deno fmt --- src/components/markdown/CodeExtended.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/markdown/CodeExtended.tsx b/src/components/markdown/CodeExtended.tsx index 32293436..10a56e0f 100644 --- a/src/components/markdown/CodeExtended.tsx +++ b/src/components/markdown/CodeExtended.tsx @@ -40,10 +40,11 @@ const Tab = styled.button<{ font-size: .7rem; cursor: pointer; padding: 1rem; - background: ${({ $activeTab, name }) => - $activeTab === name ? "#2f343c" : "#202328"}; - color: ${({ $activeTab, name }) => - $activeTab === name ? "#ffffff" : "#5b677e"}; + background: ${({ $activeTab, $name }) => { + return $activeTab === $name ? "#2f343c" : "#202328"; +}}; + color: ${({ $activeTab, $name }) => + $activeTab === $name ? "#ffffff" : "#5b677e"}; border-right: 1px solid #444f62; margin: 0; `; @@ -209,11 +210,10 @@ export default function CodeExtension({ onClick={() => { // deno-lint-ignore no-window-prefix window.dispatchEvent( - new MessageEvent("changeCodeBlock$activeTab", { + new MessageEvent("changeCodeBlockActiveTab", { data: tabName, }), ); - // set$activeTab(tabName) }} > {tabName} From d8e65a53e2886ae66daa20d7a9c9ce0be6468f47 Mon Sep 17 00:00:00 2001 From: Eric Crooks Date: Tue, 22 Aug 2023 22:20:42 -0400 Subject: [PATCH 2/2] chore: remove broken last edited text (#202) --- src/components/Layout.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index c21729d2..81f3d739 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -345,11 +345,6 @@ export default function Layout(props) { Help Improve This Page - {pageModifiedTime && ( -

- This page was last edited: {pageModifiedTime} -

- )}

If you are having issues with this page (e.g., parts of this page are not loading, documentation does not make sense, etc.),