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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user