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:
@@ -87,7 +87,7 @@ export function QuestionActions({ question }: QuestionActionsProps): React.React
|
||||
}
|
||||
}
|
||||
|
||||
const typeLabel = t(question.type)
|
||||
const typeLabel = t(`type.${question.type}`)
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user