From 0c9f68c5cd44c8088d4c484a96a5643777dea7c1 Mon Sep 17 00:00:00 2001 From: Gigi Date: Sun, 5 Oct 2025 03:58:19 +0100 Subject: [PATCH] fix: resolve linter errors - Remove unused FontAwesomeIcon import from Settings component - Remove invalid eslint-disable comment for non-configured rule - Add onSave back to useEffect dependencies to satisfy linter - All lint checks and type checks now pass --- src/components/Settings.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index ba3cbe8e..c6ed8531 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -1,5 +1,4 @@ import React, { useState, useEffect, useRef } from 'react' -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faTimes, faList, faThLarge, faImage } from '@fortawesome/free-solid-svg-icons' import { UserSettings } from '../services/settingsService' import IconButton from './IconButton' @@ -40,8 +39,7 @@ const Settings: React.FC = ({ settings, onSave, onClose }) => { } onSave(localSettings) - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [localSettings]) + }, [localSettings, onSave]) const previewFontFamily = getFontFamily(localSettings.readingFont)