Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/app/layout/app-header.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ describe('AppHeader', () => {
renderHeader('/workspace')

const hint = await screen.findByRole('status', { name: '邀请奖励提示' })
expect(screen.getByText('每日前 3 位好友,你各得 200 积分')).toBeTruthy()
expect(screen.getByText('好友注册共得 500 积分')).toBeTruthy()
expect(screen.getByText('邀请成功,双方各得 200 积分')).toBeTruthy()
expect(screen.getByText('每日前 3 次邀请可得奖励')).toBeTruthy()
expect(screen.getByRole('link', { name: '去看看邀请奖励' }).getAttribute('href')).toBe(
'/account?section=invite',
)
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/layout/app-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ export function AppHeader({ quotaApis = defaultQuotaApis }: AppHeaderProps = {})
<div className="relative flex items-start gap-3">
<div className="min-w-0">
<p className="text-[13px] font-medium leading-5 text-app-ink-soft">
每日前 3 位好友,你各得 200 积分
邀请成功,双方各得 200 积分
</p>
<p className="mt-0.5 text-[11px] leading-4 text-app-faint">
好友注册共得 500 积分
每日前 3 次邀请可得奖励
</p>
<Link
to="/account?section=invite"
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/invite/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ describe('InviteSection', () => {
expect(screen.getByText('2')).toBeTruthy()
expect(screen.getByText('100')).toBeTruthy()
expect(screen.getByText('当前码注册')).toBeTruthy()
expect(screen.getByText(/好友注册共得 500 积分/)).toBeTruthy()
expect(screen.getByText(/每日前 3 位各得 200 积分/)).toBeTruthy()
expect(screen.getByText(/邀请成功,双方各得 200 积分/)).toBeTruthy()
expect(screen.getByText(/每日前 3 次邀请可得奖励/)).toBeTruthy()
expect(screen.getByText('有效至 2026年9月16日')).toBeTruthy()
})

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/invite/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function InviteSection({ apis = defaultQuotaApis }: { apis?: QuotaApis })
<div className="max-w-2xl">
<h2 className="text-xl font-semibold tracking-[-0.025em] text-app-ink-soft">邀请奖励</h2>
<p className="mt-1.5 text-sm leading-6 text-app-muted">
好友注册共得 500 积分;你每日前 3 位各得 200 积分,之后好友仍可获得奖励
邀请成功,双方各得 200 积分;每日前 3 次邀请可得奖励
</p>
</div>

Expand Down
Loading