mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 04:26:05 +08:00
### 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)
This commit is contained in:
parent
6314d3c727
commit
55692e4da6
@ -4,6 +4,7 @@ import { formatDate } from '@/utils/date';
|
|||||||
import { DeleteOutlined } from '@ant-design/icons';
|
import { DeleteOutlined } from '@ant-design/icons';
|
||||||
import type { TableProps } from 'antd';
|
import type { TableProps } from 'antd';
|
||||||
import { Button, Table, Tag } from 'antd';
|
import { Button, Table, Tag } from 'antd';
|
||||||
|
import { upperFirst } from 'lodash';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { TenantRole } from '../constants';
|
import { TenantRole } from '../constants';
|
||||||
import { useHandleDeleteUser } from './hooks';
|
import { useHandleDeleteUser } from './hooks';
|
||||||
@ -36,7 +37,9 @@ const UserTable = () => {
|
|||||||
key: 'role',
|
key: 'role',
|
||||||
render(value, { role }) {
|
render(value, { role }) {
|
||||||
return (
|
return (
|
||||||
<Tag color={ColorMap[role as keyof typeof ColorMap]}>{role}</Tag>
|
<Tag color={ColorMap[role as keyof typeof ColorMap]}>
|
||||||
|
{upperFirst(role)}
|
||||||
|
</Tag>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user