Mostra la versione dell'app nella tab Opzioni del profilo.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-06 10:40:34 +02:00
co-authored by Claude Sonnet 5
parent a8bde94153
commit d5035cbf55
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
{ {
"name": "tanstack_start_ts", "name": "tanstack_start_ts",
"version": "0.1.0",
"private": true, "private": true,
"sideEffects": false, "sideEffects": false,
"type": "module", "type": "module",
+2
View File
@@ -28,6 +28,7 @@ import { resetGiocatore } from "@/lib/user-store";
import { esci } from "@/lib/auth"; import { esci } from "@/lib/auth";
import { useIsAdmin } from "@/lib/ruoli"; import { useIsAdmin } from "@/lib/ruoli";
import { Reveal } from "@/components/motion/Reveal"; import { Reveal } from "@/components/motion/Reveal";
import { version as APP_VERSION } from "../../package.json";
const TAB_PROFILO = ["stagione", "badge", "documenti", "impostazioni"] as const; const TAB_PROFILO = ["stagione", "badge", "documenti", "impostazioni"] as const;
type TabProfilo = (typeof TAB_PROFILO)[number]; type TabProfilo = (typeof TAB_PROFILO)[number];
@@ -298,6 +299,7 @@ function Profilo() {
<Lightbulb className="h-4 w-4 text-muted-foreground" /> <Lightbulb className="h-4 w-4 text-muted-foreground" />
</a> </a>
</div> </div>
<p className="text-center text-xs text-muted-foreground">CrAPP v{APP_VERSION}</p>
<button <button
type="button" type="button"
onClick={logout} onClick={logout}