### What problem does this PR solve? change language Issue link: #245 - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
import { Button, Card, Flex } from 'antd';
|
||||
|
||||
import { useTranslate } from '@/hooks/commonHooks';
|
||||
import { useSelectUserInfo } from '@/hooks/userSettingHook';
|
||||
import styles from './index.less';
|
||||
|
||||
const UserSettingTeam = () => {
|
||||
const userInfo = useSelectUserInfo();
|
||||
const { t } = useTranslate('setting');
|
||||
|
||||
return (
|
||||
<div className={styles.teamWrapper}>
|
||||
<Card className={styles.teamCard}>
|
||||
<Flex align="center" justify={'space-between'}>
|
||||
<span>{userInfo.nickname} Workspace</span>
|
||||
<Button type="primary">Upgrade</Button>
|
||||
<span>
|
||||
{userInfo.nickname} {t('workspace')}
|
||||
</span>
|
||||
<Button type="primary">{t('upgrade')}</Button>
|
||||
</Flex>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user