feat(modules): update layout, notifications, questions, rbac, files

- layout: update site-header.tsx

- notifications: update use-desktop-notifications.ts

- questions: update question-actions.tsx, question-columns.tsx

- rbac: update permission-catalog.ts

- files: update types.ts
This commit is contained in:
SpecialX
2026-07-04 10:23:16 +08:00
parent 98429e87eb
commit 3569d83b8e
6 changed files with 138 additions and 95 deletions

View File

@@ -87,7 +87,7 @@ export function QuestionActions({ question }: QuestionActionsProps): React.React
}
}
const typeLabel = t(question.type)
const typeLabel = t(`type.${question.type}`)
return (
<>

View File

@@ -51,7 +51,7 @@ export function useQuestionColumns(): ColumnDef<Question>[] {
<StatusBadge
status={type}
variantMap={QUESTION_TYPE_VARIANT}
labelMap={{ [type]: t(type) }}
labelMap={{ [type]: t(`type.${type}`) }}
className="whitespace-nowrap"
capitalize={false}
/>