Show app version in settings for self-hosted mode (#383)
This commit is contained in:
parent
8349bca43c
commit
d2287c2e47
@ -5,6 +5,7 @@ import { toast } from "sonner";
|
|||||||
import { type ThemePreference, useThemePreference } from "@/client/lib/theme";
|
import { type ThemePreference, useThemePreference } from "@/client/lib/theme";
|
||||||
import { authClient, useSession } from "@/lib/auth-client";
|
import { authClient, useSession } from "@/lib/auth-client";
|
||||||
import { isHostedClientAuthMode } from "@/lib/auth-mode";
|
import { isHostedClientAuthMode } from "@/lib/auth-mode";
|
||||||
|
import { version } from "../../../package.json";
|
||||||
|
|
||||||
export const Route = createFileRoute("/_app/settings")({
|
export const Route = createFileRoute("/_app/settings")({
|
||||||
component: SettingsPage,
|
component: SettingsPage,
|
||||||
@ -112,7 +113,17 @@ function SettingsPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
) : null}
|
) : (
|
||||||
|
<section className="space-y-3">
|
||||||
|
<h2 className="text-sm font-medium text-base-content/50">About</h2>
|
||||||
|
<div className="flex items-center justify-between gap-6">
|
||||||
|
<span className="text-sm">Version</span>
|
||||||
|
<span className="font-mono text-sm text-base-content/60">
|
||||||
|
v{version}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user