Skip to content

Commit

Permalink
chore(notification bind): team member notification bind hint text (#2295
Browse files Browse the repository at this point in the history
)

adjusting
  • Loading branch information
FinleyGe authored Aug 8, 2024
1 parent 3ba9c21 commit 7141189
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/web/i18n/zh/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"bind_inform_account_error": "绑定通知账号异常",
"bind_inform_account_success": "绑定通知账号成功",
"notification": {
"Bind Notification Pipe Hint": "绑定接收通知的邮箱或手机号,以确保您能及时接收到重要的系统通知。"
"Bind Notification Pipe Hint": "绑定接收通知的邮箱或手机号,以确保您能及时接收到重要的系统通知。",
"remind_owner_bind": "请提醒创建者绑定通知账号"
},
"permission": {
"Manage": "管理员",
Expand Down
11 changes: 9 additions & 2 deletions projects/app/src/pages/account/components/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,15 @@ const MyInfo = () => {
{feConfigs?.isPlus && (
<Flex mt={6} alignItems={'center'}>
<Box {...labelStyles}>{t('common:user.Notification Receive')}:&nbsp;</Box>
<Box flex={1} {...(userInfo?.team.notificationAccount ? {} : { color: 'red.600' })}>
{userInfo?.team.notificationAccount || t('common:user.Notification Receive Bind')}
<Box
flex={1}
{...(!userInfo?.team.notificationAccount && userInfo?.permission.isOwner
? { color: 'red.600' }
: {})}
>
{userInfo?.team.notificationAccount || userInfo?.permission.isOwner
? t('common:user.Notification Receive Bind')
: t('user:notification.remind_owner_bind')}
</Box>

{userInfo?.permission.isOwner && (
Expand Down

0 comments on commit 7141189

Please sign in to comment.