From 3f795195c37f2f112e1ddb186c581496402fef06 Mon Sep 17 00:00:00 2001 From: Ritika Mishra <103934960+Ritika8081@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:41:08 +0530 Subject: [PATCH] updated way of version export --- Version.tsx | 4 ---- src/components/Contributors.tsx | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Version.tsx b/Version.tsx index d38c832..3cdf14f 100644 --- a/Version.tsx +++ b/Version.tsx @@ -1,6 +1,2 @@ // version.tsx export const VERSION = "2.0.0a"; - -export function getVersion() { - return VERSION; -} diff --git a/src/components/Contributors.tsx b/src/components/Contributors.tsx index 37ddc40..51dc0c1 100644 --- a/src/components/Contributors.tsx +++ b/src/components/Contributors.tsx @@ -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 = [ { @@ -63,7 +63,7 @@ const Contributors = () => { e.preventDefault()}> -

Chords:{getVersion()}

+

Chords:{VERSION}

Contributors