Skip to content

Commit

Permalink
chore: show yjs version in header
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Apr 15, 2024
1 parent 0029fc2 commit 19d9462
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"tailwind-merge": "^2.2.2",
"tailwindcss-animate": "^1.0.7",
"y-websocket": "^2.0.2",
"yjs": "^13.6.14"
"yjs": "13.6.14"
},
"devDependencies": {
"@types/node": "^20.12.7",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/components/site-header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Github } from "lucide-react";
import packageJSON from "../../package.json";
import { ModeToggle } from "./mode-toggle";
import { Badge } from "./ui/badge";
import { Button } from "./ui/button";
import yjsLogo from "/yjs.png";

Expand All @@ -22,6 +24,9 @@ export function Header() {
</div>
{/* Placeholder for right side of header */}
<div className="ml-auto"></div>
<Badge variant="default">
Yjs Version: {packageJSON.dependencies.yjs}
</Badge>
<ModeToggle />
<Button variant="ghost" size="icon" asChild>
<a
Expand Down

0 comments on commit 19d9462

Please sign in to comment.