mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-11-16 01:21:16 +01:00
lint
This commit is contained in:
parent
5f2114fb1a
commit
884f250d00
@ -115,8 +115,7 @@ export default function AdminConnectionsSection() {
|
||||
if (loginEnabled) {
|
||||
fetchSettings();
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [loginEnabled]);
|
||||
}, [loginEnabled, fetchSettings]);
|
||||
|
||||
// Override loading state when login is disabled
|
||||
const actualLoading = loginEnabled ? loading : false;
|
||||
|
||||
@ -84,8 +84,7 @@ export default function AdminDatabaseSection() {
|
||||
if (loginEnabled) {
|
||||
fetchSettings();
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [loginEnabled]);
|
||||
}, [loginEnabled, fetchSettings]);
|
||||
|
||||
const handleSave = async () => {
|
||||
if (!validateLoginEnabled()) {
|
||||
|
||||
@ -35,8 +35,7 @@ export default function AdminEndpointsSection() {
|
||||
if (loginEnabled) {
|
||||
fetchSettings();
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [loginEnabled]);
|
||||
}, [loginEnabled, fetchSettings]);
|
||||
|
||||
const handleSave = async () => {
|
||||
if (!validateLoginEnabled()) {
|
||||
|
||||
@ -147,8 +147,7 @@ export default function AdminGeneralSection() {
|
||||
if (loginEnabled) {
|
||||
fetchSettings();
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [loginEnabled]);
|
||||
}, [loginEnabled, fetchSettings]);
|
||||
|
||||
// Override loading state when login is disabled
|
||||
const actualLoading = loginEnabled ? loading : false;
|
||||
|
||||
@ -82,8 +82,7 @@ export default function AdminPrivacySection() {
|
||||
if (loginEnabled) {
|
||||
fetchSettings();
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [loginEnabled]);
|
||||
}, [loginEnabled, fetchSettings]);
|
||||
|
||||
const handleSave = async () => {
|
||||
if (!validateLoginEnabled()) {
|
||||
|
||||
@ -163,8 +163,7 @@ export default function AdminSecuritySection() {
|
||||
if (loginEnabled) {
|
||||
fetchSettings();
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [loginEnabled]);
|
||||
}, [loginEnabled, fetchSettings]);
|
||||
|
||||
// Override loading state when login is disabled
|
||||
const actualLoading = loginEnabled ? loading : false;
|
||||
|
||||
@ -90,7 +90,6 @@ const AdminUsageSection: React.FC = () => {
|
||||
});
|
||||
setLoading(false);
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [displayMode, dataType, loginEnabled]);
|
||||
|
||||
const handleRefresh = () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user