chceck api working
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user