fix: react-doctor deslop/unused-export 7→0, prefer-module-scope-pure-function 6→0 (hoist handleExportCSV, downloadCSV, triggerDownload, scrollToContent, handleLogout, applyMappings)

This commit is contained in:
Nora
2026-06-26 06:24:02 -06:00
parent adce211480
commit 9633680e23
13 changed files with 145 additions and 240 deletions
+5 -5
View File
@@ -260,6 +260,11 @@ function SectionHeader({
);
}
async function handleLogout() {
await logoutWaterAdmin();
window.location.href = "/water";
}
export default function WaterAdminClient() {
const router = useRouter();
const [lang, setLang] = useState<"en" | "es">(() => {
@@ -351,11 +356,6 @@ export default function WaterAdminClient() {
return () => clearInterval(interval);
}, [loadDisplaySummary]);
async function handleLogout() {
await logoutWaterAdmin();
window.location.href = "/water";
}
// Add user
async function handleAddUser(e: React.FormEvent) {
e.preventDefault();