Finish Docs #38, show publicID on HUB
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { StatsToggle } from "(app)/_components/StatsToggle";
|
||||
import { StatsTitle, StatsToggle } from "(app)/_components/StatsToggle";
|
||||
|
||||
import { prisma } from "@repo/db";
|
||||
import { getServerSession } from "api/auth/[...nextauth]/auth";
|
||||
@@ -282,7 +282,7 @@ export const Stats = async ({ stats }: { stats: "pilot" | "dispo" }) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
{session.user.permissions.includes("DISPO") && <StatsToggle />}
|
||||
{session.user.permissions.includes("DISPO") ? <StatsToggle /> : <StatsTitle />}
|
||||
<div className="card bg-base-200 shadow-xl mb-4 col-span-6 xl:col-span-3">
|
||||
{stats === "dispo" && <DispoStats />}
|
||||
{stats === "pilot" && <PilotStats />}
|
||||
|
||||
Reference in New Issue
Block a user