Skip to content

Commit e36eb11

Browse files
committed
Create AppGitHubButton component
1 parent 069792a commit e36eb11

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { GithubButton } from "../ui/github-button";
2+
3+
export function AppGitHubButton() {
4+
return <GithubButton />;
5+
}

src/components/libresplit/AppNav.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { Button } from "../ui/button";
21
import {
32
NavigationMenu,
43
NavigationMenuItem,
54
NavigationMenuLink,
65
NavigationMenuList,
76
} from "../ui/navigation-menu";
7+
import { AppGitHubButton } from "./AppGitHubButton";
88
import { AppThemeToggleButton } from "./AppThemeToggleButton";
9-
import { Github } from "lucide-react";
109
import { Link } from "react-router";
1110

1211
export function AppNav() {
@@ -57,11 +56,7 @@ function LeftNav() {
5756
function RightNav() {
5857
return (
5958
<div className="flex items-center gap-2">
60-
<Button>
61-
<a href="https://github.com/wins1ey/LibreSplit">
62-
<Github />
63-
</a>
64-
</Button>
59+
<AppGitHubButton />
6560
<AppThemeToggleButton />
6661
</div>
6762
);

0 commit comments

Comments
 (0)