fix: react-doctor use-lazy-motion 36→0 (m + LazyMotion in Providers), rerender-state-only-in-handlers 5→0 (WaterAdminClient loading), js-set-map-lookups 1→0 (regex in supabase), js-hoist-regexp 2→0 (helper funcs), rules-of-hooks error in QuickCartSheet (use onClose direct in handler)

This commit is contained in:
Nora
2026-06-26 07:23:10 -06:00
parent ad0a0fe4ec
commit 72ecc02c73
39 changed files with 125 additions and 69 deletions
@@ -278,7 +278,6 @@ export default function WaterAdminClient() {
const [allEntries, setAllEntries] = useState<WaterEntry[]>([]);
const [users, setUsers] = useState<WaterUser[]>([]);
const [headgates, setHeadgates] = useState<Headgate[]>([]);
const [loading, setLoading] = useState(true);
const [alertLog, setAlertLog] = useState<AlertLogEntry[]>([]);
// Filter state
@@ -316,7 +315,6 @@ export default function WaterAdminClient() {
const [initialLoading, setInitialLoading] = useState(true);
const loadAll = async () => {
setLoading(true);
const [entries, usersData, headgatesData, alertsData] = await Promise.all([
getWaterEntries(TUXEDO_BRAND_ID, 500),
getWaterIrrigators(TUXEDO_BRAND_ID),
@@ -327,7 +325,6 @@ export default function WaterAdminClient() {
setUsers(usersData);
setHeadgates(headgatesData);
setAlertLog(alertsData as AlertLogEntry[]);
setLoading(false);
setInitialLoading(false);
};