Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
Signed-off-by: gpbl <[email protected]>
  • Loading branch information
gpbl committed Mar 2, 2024
1 parent c95be4c commit 3643f20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions website/components/VersionDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export function VersionDropdown() {
}
};

const pkgVersion =
version === "main" ? v8PackageJson.version : v9PackageJson.version;
const pkgVersion = version === "main" ? "8" : v9PackageJson.version;
return (
<DropdownMenu.Root>
<DropdownMenu.Trigger>
Expand All @@ -40,7 +39,7 @@ export function VersionDropdown() {
</DropdownMenu.Trigger>
<DropdownMenu.Content>
<DropdownMenu.Item
shortcut={v8PackageJson.version}
shortcut={"8"}
onClick={handleLatestClick}
aria-description="Press Enter to choose this version"
>
Expand Down
4 changes: 1 addition & 3 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
"remark-gfm": "^4.0.0",
"remark-github": "^12.0.0",
"shiki": "^1.1.7",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"unist-util-visit": "^5.0.0",
"@types/node": "^20.11.20",
"@types/react": "^18.2.59",
"@types/react-dom": "18.2.19",
Expand Down

0 comments on commit 3643f20

Please sign in to comment.