mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 15:36:50 +00:00
Automatically show the correct version in the sidebar
This commit is contained in:
parent
14f7c7fb22
commit
e631d39b75
@ -18,8 +18,8 @@ import { Button } from "@/components/ui/button"
|
|||||||
import Link from "next/link"
|
import Link from "next/link"
|
||||||
import Cookies from "js-cookie"
|
import Cookies from "js-cookie"
|
||||||
import { useRouter } from "next/navigation"
|
import { useRouter } from "next/navigation"
|
||||||
|
import packageJson from "@/package.json"
|
||||||
|
|
||||||
// Typdefinitionen
|
|
||||||
interface NavItem {
|
interface NavItem {
|
||||||
title: string
|
title: string
|
||||||
icon?: React.ComponentType<any>
|
icon?: React.ComponentType<any>
|
||||||
@ -83,7 +83,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
|||||||
<Image src="/logo.png" width={48} height={48} alt="Logo"/>
|
<Image src="/logo.png" width={48} height={48} alt="Logo"/>
|
||||||
<div className="flex flex-col gap-0.5 leading-none">
|
<div className="flex flex-col gap-0.5 leading-none">
|
||||||
<span className="font-semibold">CoreControl</span>
|
<span className="font-semibold">CoreControl</span>
|
||||||
<span className="">v0.0.1</span>
|
<span className="">v{packageJson.version}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</SidebarMenuButton>
|
</SidebarMenuButton>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user