Skip to content

Commit

Permalink
chore: update empty state text for department selector
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-w committed Jan 10, 2025
1 parent f21f1ed commit 996c93e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/common-i18n/src/locales/en/sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@
"departmentSelectorSearchPlaceholder": "Search departments...",
"selected": "Selected",
"noSelected": "No selected",
"empty": "No members"
"empty": "No members",
"emptyDepartment": "No departments"
}
}
3 changes: 2 additions & 1 deletion packages/common-i18n/src/locales/zh/sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@
"departmentSelectorSearchPlaceholder": "搜索部门...",
"selected": "已选择",
"noSelected": "未选择",
"empty": "暂无成员"
"empty": "暂无成员",
"emptyDepartment": "暂无部门"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const DepartmentSelector = forwardRef<IDepartmentSelectorRef, IDepartment
<div className="space-y-2 px-4">
{departments?.length === 0 && !isLoading && (
<div className="py-4 text-center text-sm text-muted-foreground">
{t('memberSelector.empty')}
{t('memberSelector.emptyDepartment')}
</div>
)}
<>
Expand Down

0 comments on commit 996c93e

Please sign in to comment.