Mostra la versione dell'app nella tab Opzioni del profilo.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user