mirror of
https://github.com/dergigi/boris.git
synced 2025-12-27 11:34:50 +01:00
fix: resolve linter errors for unused parameters
- Add eslint-disable comments for intentionally unused _settings parameters - Parameters kept for API compatibility with existing code - All linter and type checks now pass
This commit is contained in:
@@ -6,11 +6,11 @@ import { UserSettings } from '../services/settingsService'
|
||||
* Images are cached on first load and available offline automatically
|
||||
*
|
||||
* @param imageUrl - The URL of the image to display
|
||||
* @param settings - User settings (for future use if needed)
|
||||
* @returns The image URL (Service Worker handles caching)
|
||||
*/
|
||||
export function useImageCache(
|
||||
imageUrl: string | undefined,
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
_settings?: UserSettings
|
||||
): string | undefined {
|
||||
// Service Worker handles everything - just return the URL as-is
|
||||
@@ -23,6 +23,7 @@ export function useImageCache(
|
||||
*/
|
||||
export function useCacheImageOnLoad(
|
||||
imageUrl: string | undefined,
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
_settings?: UserSettings
|
||||
): void {
|
||||
// Service Worker will cache on first fetch
|
||||
|
||||
Reference in New Issue
Block a user