skeleton for catalogues
This commit is contained in:
@@ -2,14 +2,21 @@ import GridWrapper from "@/components/GridWrapper";
|
||||
import { type FC } from "react";
|
||||
import { useParams } from "react-router-dom";
|
||||
import ButtonAddCatalogue from "./components/ButtonAddCatalogue";
|
||||
import CatalogueGridSkeleton from "./components/CatalogueGridSkeleton";
|
||||
import CatalogueItem from "./components/CatalogueItem";
|
||||
import { useGetBusinessCatalog } from "./hooks/useCatalogueData";
|
||||
|
||||
const Business: FC = () => {
|
||||
const { slug } = useParams<{ slug: string }>();
|
||||
const { data, isPending, refetch } = useGetBusinessCatalog(slug ?? "");
|
||||
// const { data: businessData, isLoading: businessLoading } =
|
||||
// useGetBusinessBySlug(slug ?? "");
|
||||
|
||||
if (isPending) {
|
||||
return (
|
||||
<div className="w-full mt-5">
|
||||
<CatalogueGridSkeleton />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="w-full mt-5">
|
||||
|
||||
Reference in New Issue
Block a user