feat : add not data config component at product config list

This commit is contained in:
alij
2024-06-23 09:44:11 +04:30
parent 18a54817b1
commit 5250ae2a54

View File

@@ -6,6 +6,7 @@ import ConfigItem from "./components/ConfigItem";
import ConfigItemLoading from "./components/ConfigItemLoading";
import ProfileImage from "./components/ProfileImage";
import { Fragment } from "react/jsx-runtime";
import { MdErrorOutline } from "react-icons/md";
const ProductConfigList = ({
data,
@@ -23,8 +24,10 @@ const ProductConfigList = ({
<LoaderIcon className="m-1.5" />
) : error ? (
"error"
) : (
) : userTitle ? (
userTitle
) : (
"خطای تشخیص نام"
)}
</Button>
</div>
@@ -48,6 +51,11 @@ const ProductConfigList = ({
<Alert type="danger" message="خطایی با این موضوع رخ داد: ">
{error.message}
</Alert>
) : data?.result?.configs?.length === 0 ? (
<div className="w-full h-full flex flex-col gap-3 justify-center items-center">
<MdErrorOutline className="w-[5rem] h-[5rem]" />
<p className="text-sm md:text-base"> کانفیگی وجود ندارد </p>
</div>
) : (
data?.result?.configs?.map((item) => {
return (