handle pagination in specialities and fix warning
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import TextLoading from "@/app/component/loading/Text";
|
||||
import Link from "next/link";
|
||||
|
||||
function ItemSpecialties({ data, loading }) {
|
||||
function ItemSpecialties({ data }) {
|
||||
return (
|
||||
<li>
|
||||
<Link
|
||||
@@ -13,16 +12,12 @@ function ItemSpecialties({ data, loading }) {
|
||||
}}
|
||||
className="py-[17.5px] px-[12px] flex flex-col justify-center items-center gap-[16px]
|
||||
rounded-lg bg-[#FFF] shadow-[0px_1px_24.8px_0px_rgba(204,_204,_204,_0.18)]
|
||||
hover:bg-[#5559CE] transition-all duration-500 cursor-pointer hover-mode-item-speciality"
|
||||
hover:bg-[#5559CE] transition-all text-item-head-white duration-500 cursor-pointer hover-mode-item-speciality"
|
||||
>
|
||||
<TextLoading loading={loading} width={70} height={18}>
|
||||
<h2 className="text-[#3B3B3B] text-[16px] font-bold">{data.name}</h2>
|
||||
</TextLoading>
|
||||
<TextLoading loading={loading} width={50} height={18}>
|
||||
<p className="text-[#7E7E7E] text-[14px] font-medium">
|
||||
{data.number_of_doctors} پزشک
|
||||
</p>
|
||||
</TextLoading>
|
||||
<h2 className="text-[#3B3B3B] item-head text-[16px] font-bold text-center">{data.name}</h2>
|
||||
<p className="text-[#7E7E7E] text-[14px] font-medium">
|
||||
{data.number_of_doctors} پزشک
|
||||
</p>
|
||||
</Link>
|
||||
</li>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user