diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx
index 18d6f8aa..9f1e7408 100644
--- a/src/components/Layout.tsx
+++ b/src/components/Layout.tsx
@@ -349,11 +349,6 @@ export default function Layout(props) {
- 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.), diff --git a/src/components/markdown/CodeExtended.tsx b/src/components/markdown/CodeExtended.tsx index 5a80695a..a8456e2b 100644 --- a/src/components/markdown/CodeExtended.tsx +++ b/src/components/markdown/CodeExtended.tsx @@ -41,7 +41,7 @@ const Tab = styled.button<{ cursor: pointer; padding: 1rem; background: ${({ $activeTab, $name }) => { - return ($activeTab === $name ? "#2f343c" : "#202328"); + return $activeTab === $name ? "#2f343c" : "#202328"; }}; color: ${({ $activeTab, $name }) => $activeTab === $name ? "#ffffff" : "#5b677e"}; @@ -216,14 +216,10 @@ export default function CodeExtension({ onClick={() => { // deno-lint-ignore no-window-prefix window.dispatchEvent( - new MessageEvent( - "changeCodeBlock$activeTab", - { - data: tabName, - }, - ), + new MessageEvent("changeCodeBlockActiveTab", { + data: tabName, + }), ); - setActiveTab(tabName); }} > {tabName}