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
This commit is contained in:
Gigi
2025-10-05 03:58:19 +01:00
parent 850a4bede5
commit 0c9f68c5cd

View File

@@ -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<SettingsProps> = ({ settings, onSave, onClose }) => {
}
onSave(localSettings)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [localSettings])
}, [localSettings, onSave])
const previewFontFamily = getFontFamily(localSettings.readingFont)