fix warning console

This commit is contained in:
Ehsan
2024-10-11 00:58:28 +03:30
parent 26f3ab3a09
commit 854c682535
5 changed files with 56 additions and 56 deletions
+4 -4
View File
@@ -4,7 +4,7 @@ import UserEdit from "@/components/icons/UserEdit";
function Step({ value }) {
const list = [
{ icon: <UserEdit active={value >= 0} />, name: "اطلاعات عمومی" },
{ icon: <UserEdit active={value > 0} />, name: "اطلاعات عمومی" },
{ icon: <LocationAdd active={value >= 1} />, name: "اطلاعات مطب" },
{ icon: <CalendarTick active={value >= 2} />, name: "روزهای کاری" },
];
@@ -16,14 +16,14 @@ function Step({ value }) {
<div className="flex flex-col items-center justify-center gap-2">
<div
className={`flex items-center justify-center p-[18px] w-[75px] h-[75px] rounded-full
${value >= idx ? "bg-[#5559CE]" : "bg-[#F6F6F6]"}`}
${value > idx ? "bg-[#5559CE]" : "bg-[#F6F6F6]"}`}
>
{item.icon}
</div>
<p
className={`text-[16px]
${
value >= idx
value > idx
? "font-bold text-[#5559CE]"
: "font-normal text-[#616161]"
}`}
@@ -34,7 +34,7 @@ function Step({ value }) {
{list.length > idx + 1 && (
<span
className={`block rounded-[16px] h-[2px] w-[100px] ${
value >= idx ? "bg-[#5559CE]" : "bg-[#EFEFEF]"
value > idx ? "bg-[#5559CE]" : "bg-[#EFEFEF]"
}`}
></span>
)}