chceck api working

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-03-05 17:25:45 +05:00
parent 9cc151a796
commit cd7d6bb208
5 changed files with 50 additions and 19 deletions

View File

@@ -9,7 +9,7 @@ import { endPoints } from "@/request/links";
import { useQuery } from "@tanstack/react-query";
import { useState } from "react";
import PaginationLite from "@/components/paginationUI";
import { CertCardSkeleton } from "./loading";
import { CertCardSkeleton } from "./loading/loading";
export function NormativeCard() {
const t = useTranslations();
@@ -25,10 +25,8 @@ export function NormativeCard() {
}),
});
console.log(data);
const generallyData = data?.results || normativeData;
const generallyData = data?.results ?? normativeData;
if (isLoading) return <CertCardSkeleton />;
return (