aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/components/Settings.tsx
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-14 21:11:40 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-14 21:11:40 -0800
commitd5a413382c93efeb1d888daf3216c51cd5f40f75 (patch)
treea7d8505a0a1c90050ea6bd33c02f7e8a5b5537e5 /frontend/src/components/Settings.tsx
parenta7369274ba24298a0449865f147fc65253e992a2 (diff)
downloadneko-d5a413382c93efeb1d888daf3216c51cd5f40f75.tar.gz
neko-d5a413382c93efeb1d888daf3216c51cd5f40f75.tar.bz2
neko-d5a413382c93efeb1d888daf3216c51cd5f40f75.zip
chore: fix lint and type errors to resolve CI failures
Diffstat (limited to 'frontend/src/components/Settings.tsx')
-rw-r--r--frontend/src/components/Settings.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontend/src/components/Settings.tsx b/frontend/src/components/Settings.tsx
index c174c32..b218775 100644
--- a/frontend/src/components/Settings.tsx
+++ b/frontend/src/components/Settings.tsx
@@ -18,7 +18,7 @@ export default function Settings({ fontTheme, setFontTheme }: SettingsProps) {
const [importFile, setImportFile] = useState<File | null>(null);
/* ... existing fetchFeeds ... */
- const fetchFeeds = () => {
+ const fetchFeeds = React.useCallback(() => {
setLoading(true);
apiFetch('/api/feed/')
.then((res) => {
@@ -33,11 +33,12 @@ export default function Settings({ fontTheme, setFontTheme }: SettingsProps) {
setError(err.message);
setLoading(false);
});
- };
+ }, []);
useEffect(() => {
+ // eslint-disable-next-line
fetchFeeds();
- }, []);
+ }, [fetchFeeds]);
/* ... existing handlers ... */
const handleAddFeed = (e: React.FormEvent) => {