From 26f3ab3a095d25f712e023b668b2befcebe9168d Mon Sep 17 00:00:00 2001 From: Ehsan Date: Thu, 10 Oct 2024 22:09:01 +0330 Subject: [PATCH] design style step head --- components/panel/addDoctor/Step.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/components/panel/addDoctor/Step.js b/components/panel/addDoctor/Step.js index ec7a92f..65512c1 100644 --- a/components/panel/addDoctor/Step.js +++ b/components/panel/addDoctor/Step.js @@ -4,26 +4,26 @@ import UserEdit from "@/components/icons/UserEdit"; function Step({ value }) { const list = [ - { icon: , name: "اطلاعات عمومی" }, - { icon: , name: "اطلاعات مطب" }, - { icon: , name: "روزهای کاری" }, + { icon: = 0} />, name: "اطلاعات عمومی" }, + { icon: = 1} />, name: "اطلاعات مطب" }, + { icon: = 2} />, name: "روزهای کاری" }, ]; return (
    {list.map((item, idx) => ( -
  • +
  • = idx ? "bg-[#5559CE]" : "bg-[#F6F6F6]"}`} > {item.icon}

    = idx ? "font-bold text-[#5559CE]" : "font-normal text-[#616161]" }`} @@ -31,6 +31,13 @@ function Step({ value }) { {item.name}

    + {list.length > idx + 1 && ( + = idx ? "bg-[#5559CE]" : "bg-[#EFEFEF]" + }`} + > + )}
  • ))}