Skip to content

Commit

Permalink
Merge pull request #21 from DylanDevelops/version-number
Browse files Browse the repository at this point in the history
Version Number on Footer
  • Loading branch information
divinewton authored Nov 20, 2024
2 parents 6dbf331 + 504b70f commit d340069
Show file tree
Hide file tree
Showing 4 changed files with 6,998 additions and 6,987 deletions.
12 changes: 10 additions & 2 deletions components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import Link from "next/link";
import { Button } from "./ui/button";
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "./ui/dropdown-menu";
import { Github, Mail } from "lucide-react";
import { GitBranch, Github, Mail } from "lucide-react";
import packageJson from '../package.json';

export const Footer = () => {
const { version } = packageJson;

return (
<div className="flex items-center justify-between w-full p-6 bg-transparent z-5">
<DropdownMenu>
Expand All @@ -25,7 +28,7 @@ export const Footer = () => {
</Link>
</DropdownMenuContent>
</DropdownMenu>
<div className="flex flex-row gap-x-1">
<div className="flex-row gap-x-1 hidden sm:block">
<Link href="mailto:[email protected]">
<Button variant="ghost" size="icon">
<Mail className="text-muted-foreground w-5 h-5" />
Expand All @@ -36,6 +39,11 @@ export const Footer = () => {
<Github className="text-muted-foreground w-5 h-5" />
</Button>
</Link>
<Link href="https://github.com/DylanDevelops/aidentify/releases" target="_blank">
<Button variant="ghost" className="text-muted-foreground">
<GitBranch className="w-5 h-5 mr-2" /> v{version}
</Button>
</Link>
</div>
</div>
);
Expand Down
Loading

0 comments on commit d340069

Please sign in to comment.