Skip to content

Commit

Permalink
updated way of version export
Browse files Browse the repository at this point in the history
  • Loading branch information
Ritika8081 committed Sep 4, 2024
1 parent cf12292 commit 3f79519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions Version.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
// version.tsx
export const VERSION = "2.0.0a";

export function getVersion() {
return VERSION;
}
4 changes: 2 additions & 2 deletions src/components/Contributors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Dialog, DialogContent, DialogTrigger } from "./ui/dialog";
import { CircleAlert } from "lucide-react";
import { Button } from "./ui/button";
import Link from "next/link";
import { getVersion } from "../../Version";
import { VERSION } from "../../Version";

const contributors = [
{
Expand Down Expand Up @@ -63,7 +63,7 @@ const Contributors = () => {
<DialogContent onOpenAutoFocus={(e) => e.preventDefault()}>
<Card className="border-none -m-5">
<CardHeader>
<p>Chords:{getVersion()}</p>
<p>Chords:{VERSION}</p>
<CardTitle className="text-lg">Contributors</CardTitle>
<Separator className="bg-primary" />
</CardHeader>
Expand Down

0 comments on commit 3f79519

Please sign in to comment.