refactor(dashboard): extract RoleGuard and unify mobile nav with Button

This commit is contained in:
zetaloop
2026-02-25 15:18:20 +08:00
parent f8659b5ebc
commit 37d83d8805
5 changed files with 86 additions and 51 deletions
@@ -42,10 +42,6 @@ export default function ServicesPage() {
const scopedPlayerIdSet = new Set(scopedPlayerIds)
const scopedServices = services.filter((service) => scopedPlayerIdSet.has(service.playerId))
if (currentRole !== "player" && currentRole !== "owner") {
return <div className="text-sm text-muted-foreground"></div>
}
return (
<div className="container mx-auto max-w-6xl px-4 py-8 space-y-8">
<div className="flex items-center justify-between">