Skip to content

Commit c826fcf

Browse files
committed
chore(platform): user dropdown add change password
1 parent e0626c1 commit c826fcf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/platform/src/app/routes/layout/header/user/User.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useStore } from 'rcl-store';
22
import { useTranslation } from 'react-i18next';
33
import { useNavigate } from 'react-router-dom';
44

5-
import { LogoutOutlined, SettingOutlined, UserOutlined } from '@react-devui/icons';
5+
import { LockOutlined, LogoutOutlined, SettingOutlined, UserOutlined } from '@react-devui/icons';
66
import { DAvatar, DDropdown } from '@react-devui/ui';
77

88
import { LOGIN_PATH } from '../../../../config/other';
@@ -18,7 +18,8 @@ export function AppUser(props: React.ButtonHTMLAttributes<HTMLButtonElement>): J
1818
style={{ minWidth: 160 }}
1919
dList={[
2020
{ id: 'center', label: t('routes.layout.Account Center'), type: 'item', icon: <UserOutlined /> },
21-
{ id: 'setting', label: t('routes.layout.Account Settings'), type: 'item', icon: <SettingOutlined />, separator: true },
21+
{ id: 'setting', label: t('routes.layout.Account Settings'), type: 'item', icon: <SettingOutlined /> },
22+
{ id: 'password', label: t('routes.layout.Change Password'), type: 'item', icon: <LockOutlined />, separator: true },
2223
{ id: 'logout', label: t('routes.layout.Logout'), type: 'item', icon: <LogoutOutlined /> },
2324
]}
2425
dTrigger="click"

packages/platform/src/startup/i18n/resources.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"My account": "My account",
3232
"Account Center": "Account Center",
3333
"Account Settings": "Account Settings",
34+
"Change Password": "Change Password",
3435
"Logout": "Logout"
3536
},
3637
"login": {
@@ -125,6 +126,7 @@
125126
"My account": "我的账户",
126127
"Account Center": "个人中心",
127128
"Account Settings": "个人设置",
129+
"Change Password": "修改密码",
128130
"Logout": "退出登录"
129131
},
130132
"login": {

0 commit comments

Comments
 (0)