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) {
|
if (loginEnabled) {
|
||||||
fetchSettings();
|
fetchSettings();
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
}, [loginEnabled, fetchSettings]);
|
||||||
}, [loginEnabled]);
|
|
||||||
|
|
||||||
// Override loading state when login is disabled
|
// Override loading state when login is disabled
|
||||||
const actualLoading = loginEnabled ? loading : false;
|
const actualLoading = loginEnabled ? loading : false;
|
||||||
|
|||||||
@ -84,8 +84,7 @@ export default function AdminDatabaseSection() {
|
|||||||
if (loginEnabled) {
|
if (loginEnabled) {
|
||||||
fetchSettings();
|
fetchSettings();
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
}, [loginEnabled, fetchSettings]);
|
||||||
}, [loginEnabled]);
|
|
||||||
|
|
||||||
const handleSave = async () => {
|
const handleSave = async () => {
|
||||||
if (!validateLoginEnabled()) {
|
if (!validateLoginEnabled()) {
|
||||||
|
|||||||
@ -35,8 +35,7 @@ export default function AdminEndpointsSection() {
|
|||||||
if (loginEnabled) {
|
if (loginEnabled) {
|
||||||
fetchSettings();
|
fetchSettings();
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
}, [loginEnabled, fetchSettings]);
|
||||||
}, [loginEnabled]);
|
|
||||||
|
|
||||||
const handleSave = async () => {
|
const handleSave = async () => {
|
||||||
if (!validateLoginEnabled()) {
|
if (!validateLoginEnabled()) {
|
||||||
|
|||||||
@ -147,8 +147,7 @@ export default function AdminGeneralSection() {
|
|||||||
if (loginEnabled) {
|
if (loginEnabled) {
|
||||||
fetchSettings();
|
fetchSettings();
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
}, [loginEnabled, fetchSettings]);
|
||||||
}, [loginEnabled]);
|
|
||||||
|
|
||||||
// Override loading state when login is disabled
|
// Override loading state when login is disabled
|
||||||
const actualLoading = loginEnabled ? loading : false;
|
const actualLoading = loginEnabled ? loading : false;
|
||||||
|
|||||||
@ -82,8 +82,7 @@ export default function AdminPrivacySection() {
|
|||||||
if (loginEnabled) {
|
if (loginEnabled) {
|
||||||
fetchSettings();
|
fetchSettings();
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
}, [loginEnabled, fetchSettings]);
|
||||||
}, [loginEnabled]);
|
|
||||||
|
|
||||||
const handleSave = async () => {
|
const handleSave = async () => {
|
||||||
if (!validateLoginEnabled()) {
|
if (!validateLoginEnabled()) {
|
||||||
|
|||||||
@ -163,8 +163,7 @@ export default function AdminSecuritySection() {
|
|||||||
if (loginEnabled) {
|
if (loginEnabled) {
|
||||||
fetchSettings();
|
fetchSettings();
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
}, [loginEnabled, fetchSettings]);
|
||||||
}, [loginEnabled]);
|
|
||||||
|
|
||||||
// Override loading state when login is disabled
|
// Override loading state when login is disabled
|
||||||
const actualLoading = loginEnabled ? loading : false;
|
const actualLoading = loginEnabled ? loading : false;
|
||||||
|
|||||||
@ -90,7 +90,6 @@ const AdminUsageSection: React.FC = () => {
|
|||||||
});
|
});
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
||||||
}, [displayMode, dataType, loginEnabled]);
|
}, [displayMode, dataType, loginEnabled]);
|
||||||
|
|
||||||
const handleRefresh = () => {
|
const handleRefresh = () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user