chore: phase 1 lint/type fixes — commit all changes

This commit is contained in:
m7amedez5511
2026-07-02 20:07:38 +03:00
parent d225291b70
commit 25f3468d74
37 changed files with 162 additions and 176 deletions

View File

@@ -19,7 +19,7 @@ export function useArchivedCars() {
const [page, setPage] = useState(1);
const [search, setSearch] = useState("");
const load = () => {
const load = useCallback(() => {
const token = getStoredToken();
setLoading(true);
setError(null);
@@ -31,9 +31,9 @@ export function useArchivedCars() {
})
.catch((err: Error) => setError(err.message))
.finally(() => setLoading(false));
};
}, []);
useEffect(() => { load(); }, []);
useEffect(() => { queueMicrotask(load); }, [load]);
const filtered = useMemo(() => {
if (!search.trim()) return allCars;