浏览代码

Feat: Capitalize the first letter of the team's role #2834 (#3597)

### What problem does this PR solve?

Feat: Capitalize the first letter of the team's role #2834

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
tags/v0.14.0
balibabu 11 个月前
父节点
当前提交
55692e4da6
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      web/src/pages/user-setting/setting-team/user-table.tsx

+ 4
- 1
web/src/pages/user-setting/setting-team/user-table.tsx 查看文件

@@ -4,6 +4,7 @@ import { formatDate } from '@/utils/date';
import { DeleteOutlined } from '@ant-design/icons';
import type { TableProps } from 'antd';
import { Button, Table, Tag } from 'antd';
import { upperFirst } from 'lodash';
import { useTranslation } from 'react-i18next';
import { TenantRole } from '../constants';
import { useHandleDeleteUser } from './hooks';
@@ -36,7 +37,9 @@ const UserTable = () => {
key: 'role',
render(value, { role }) {
return (
<Tag color={ColorMap[role as keyof typeof ColorMap]}>{role}</Tag>
<Tag color={ColorMap[role as keyof typeof ColorMap]}>
{upperFirst(role)}
</Tag>
);
},
},

正在加载...
取消
保存