mirror of
https://github.com/dergigi/boris.git
synced 2026-01-21 15:54:30 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user