Skip to content

Commit

Permalink
Merge branch 'main' into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
crookse authored Nov 4, 2023
2 parents ee71f5b + d8e65a5 commit 5932fbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
5 changes: 0 additions & 5 deletions src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,6 @@ export default function Layout(props) {
<MakeBetterHeading>
Help Improve This Page
</MakeBetterHeading>
{pageModifiedTime && (
<p>
This page was last edited: {pageModifiedTime}
</p>
)}
<p>
If you are having issues with this page (e.g., parts of this
page are not loading, documentation does not make sense, etc.),
Expand Down
12 changes: 4 additions & 8 deletions src/components/markdown/CodeExtended.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"};
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 5932fbe

Please # to comment.