🐛 fix(about): 移除重复更新日志入口 (#834)

This commit is contained in:
mango
2026-08-05 11:29:59 +08:00
parent c7ac6d8a23
commit a0f84fd6e3
3 changed files with 26 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
import { describe, expect, it } from 'vitest';
import { shouldShowFooterReleaseNotesAction } from './aboutUpdateActions';
describe('aboutUpdateActions', () => {
it('keeps release notes in the legacy modal footer only', () => {
expect(shouldShowFooterReleaseNotesAction('legacy-modal')).toBe(true);
expect(shouldShowFooterReleaseNotesAction('settings-center')).toBe(false);
});
});

View File

@@ -0,0 +1,5 @@
export type AboutUpdateActionsSurface = 'settings-center' | 'legacy-modal';
export const shouldShowFooterReleaseNotesAction = (
surface: AboutUpdateActionsSurface,
): boolean => surface === 'legacy-modal';