fix(frontend): resolve TypeScript errors causing CI failures

- Remove unused setUseRelativeTime in UnifiedBackups.tsx (TS6133)
- Remove unused testing-library imports in PBSEnhancementBanner.test.ts (TS6133)
- Fix type comparison in test by using union type instead of 'as const' (TS2367)
This commit is contained in:
rcourtman 2025-12-26 11:06:42 +00:00
parent 5c600912f7
commit 83790a4bfc
2 changed files with 4 additions and 4 deletions

View file

@ -158,7 +158,7 @@ const UnifiedBackups: Component = () => {
}
});
const [useRelativeTime, setUseRelativeTime] = createLocalStorageBooleanSignal(
const [useRelativeTime] = createLocalStorageBooleanSignal(
STORAGE_KEYS.BACKUPS_USE_RELATIVE_TIME,
false, // Default to absolute time
);

View file

@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { render, screen, waitFor, fireEvent, cleanup } from '@solidjs/testing-library';
import { cleanup } from '@solidjs/testing-library';
import { createStore } from 'solid-js/store';
// We need to test the PBS enhancement banner logic
@ -197,8 +197,8 @@ describe('PBS Backup Data Source Indicator', () => {
});
it('should NOT show "via PVE" for non-PBS backups', () => {
const backup = {
backupType: 'local' as const,
const backup: { backupType: 'local' | 'remote'; storage: string; datastore: null } = {
backupType: 'local',
storage: 'local-lvm',
datastore: null,
};