mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 10:11:13 -05:00
Fix console statement violations
This commit is contained in:
@@ -134,7 +134,7 @@ export function useModerationFilters(
|
||||
return JSON.parse(saved);
|
||||
}
|
||||
} catch (error: unknown) {
|
||||
console.error('Failed to load persisted filters:', error);
|
||||
logger.warn('Failed to load persisted filters', { error, storageKey });
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -153,7 +153,7 @@ export function useModerationFilters(
|
||||
}
|
||||
}
|
||||
} catch (error: unknown) {
|
||||
console.error('Failed to load persisted sort:', error);
|
||||
logger.warn('Failed to load persisted sort', { error, storageKey });
|
||||
}
|
||||
|
||||
return initialSortConfig;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
import { useState, useCallback, useEffect, useMemo } from 'react';
|
||||
import { MODERATION_CONSTANTS } from '@/lib/moderation/constants';
|
||||
import * as storage from '@/lib/localStorage';
|
||||
import { logger } from '@/lib/logger';
|
||||
|
||||
export interface PaginationConfig {
|
||||
/** Initial page number (1-indexed) */
|
||||
@@ -123,7 +124,7 @@ export function usePagination(config: PaginationConfig = {}): PaginationState {
|
||||
return JSON.parse(saved);
|
||||
}
|
||||
} catch (error: unknown) {
|
||||
console.error('Failed to load pagination state:', error);
|
||||
logger.warn('Failed to load pagination state', { error, storageKey });
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user