refactor(types): align core types with backend contract
This commit is contained in:
@@ -35,12 +35,12 @@ import { useState } from "react"
|
||||
|
||||
import { canAccessDashboard } from "@/components/role-guard"
|
||||
|
||||
const roleLabels: Record<UserRole, string> = {
|
||||
const roleLabels = {
|
||||
consumer: "客户",
|
||||
player: "打手",
|
||||
owner: "店主",
|
||||
admin: "管理员",
|
||||
}
|
||||
} satisfies Record<UserRole, string>
|
||||
|
||||
export function Header() {
|
||||
const [mobileOpen, setMobileOpen] = useState(false)
|
||||
|
||||
Reference in New Issue
Block a user