Skip to content

Commit

Permalink
feat(web): 增加QQ号显示
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Dec 13, 2020
1 parent bafee21 commit 90d32af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/redux/types/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface UserInfo {
sex: UserGender;
sign: string;
alignment: UserAlignment;
qq_number: string;
}

// 用户好友邀请
Expand Down
12 changes: 12 additions & 0 deletions src/web/routes/Main/Navbar/SettingView/SettingAccountView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@ export const SettingAccountView: React.FC = TMemo(() => {
renderEditor={AlignmentChoose as any}
onSave={buildUpdateFieldFn('alignment')}
/>
<FullModalField
title={
<Space size={4}>
{t('QQ号')}
<TipIcon desc={t('方便开发者联系到你')} />
</Space>
}
value={userInfo.qq_number}
editable={true}
renderEditor={DefaultFullModalInputEditorRender}
onSave={buildUpdateFieldFn('qq_number')}
/>
<FullModalField
title={t('简介')}
value={userInfo.sign}
Expand Down

0 comments on commit 90d32af

Please sign in to comment.