diff --git a/components/icons/CalendarTick.js b/components/icons/CalendarTick.js index 77394d5..44c11fa 100644 --- a/components/icons/CalendarTick.js +++ b/components/icons/CalendarTick.js @@ -6,6 +6,7 @@ function CalendarTick({ active }) { height="40" viewBox="0 0 40 40" fill="none" + className="delay-500" > ); diff --git a/components/icons/LocationAdd.js b/components/icons/LocationAdd.js index 4ab046d..7238a94 100644 --- a/components/icons/LocationAdd.js +++ b/components/icons/LocationAdd.js @@ -6,26 +6,27 @@ function LocationAdd({ active }) { height="40" viewBox="0 0 40 40" fill="none" + className="delay-500" > ); diff --git a/components/icons/UserEdit.js b/components/icons/UserEdit.js index e460c1c..fb8d409 100644 --- a/components/icons/UserEdit.js +++ b/components/icons/UserEdit.js @@ -6,6 +6,7 @@ function UserEdit({ active }) { height="40" viewBox="0 0 41 40" fill="none" + className="delay-500" > ); diff --git a/components/panel/addDoctor/Step.js b/components/panel/addDoctor/Step.js index aadf72b..b0df7d4 100644 --- a/components/panel/addDoctor/Step.js +++ b/components/panel/addDoctor/Step.js @@ -4,7 +4,7 @@ import UserEdit from "@/components/icons/UserEdit"; function Step({ value }) { const list = [ - { icon: 0} />, name: "اطلاعات عمومی" }, + { icon: = 0} />, name: "اطلاعات عمومی" }, { icon: = 1} />, name: "اطلاعات مطب" }, { icon: = 2} />, name: "روزهای کاری" }, ]; @@ -15,15 +15,17 @@ function Step({ value }) {
  • idx ? "bg-[#5559CE]" : "bg-[#F6F6F6]"}`} + className={`flex items-center bg-[#F6F6F6] justify-center p-[18px] w-[75px] h-[75px] rounded-full + relative overflow-hidden before:delay-500 before:transition-all before:duration-500 + before:absolute before:w-full before:h-full before:bg-[#5559CE] + ${value >= idx ? "before:right-0" : "before:-right-full"}`} > - {item.icon} +
    {item.icon}

    idx + value >= idx ? "font-bold text-[#5559CE]" : "font-normal text-[#616161]" }`} @@ -33,9 +35,11 @@ function Step({ value }) {

    {list.length > idx + 1 && ( idx ? "bg-[#5559CE]" : "bg-[#EFEFEF]" - }`} + className={`block rounded-[16px] transition-all duration-500 h-[2px] bg-[#EFEFEF] w-[100px] + relative overflow-hidden before:transition-all before:duration-500 + before:absolute before:w-full before:h-full before:bg-[#5559CE] before:ease-linear + + ${value > idx ? "before:right-0" : "before:-right-full"}`} > )}
  • diff --git a/components/panel/addDoctor/index.js b/components/panel/addDoctor/index.js index 0335df7..6ccc837 100644 --- a/components/panel/addDoctor/index.js +++ b/components/panel/addDoctor/index.js @@ -13,14 +13,6 @@ import ArrowRightPH from "@/components/icons/ArrowRightPH"; import { Button } from "@mui/material"; import Step from "./Step"; -const listTab = [ - "اطلاعات عمومی", - "اطلاعات مطب", - "نوبت ها", - "روزهای کاری", - "روزهای خاص", -]; - function AddDoctorPage() { const [value, setValue] = useState(0); const [open, setOpen] = useState(false); @@ -28,11 +20,10 @@ function AddDoctorPage() { const handleChange = (event, newValue) => setValue(newValue); const components = [ - , - , - , - , - , + , + , + , + , ]; return ( diff --git a/components/panel/addDoctor/listMenu/generalInformation/form/Form.js b/components/panel/addDoctor/listMenu/generalInformation/form/index.js similarity index 97% rename from components/panel/addDoctor/listMenu/generalInformation/form/Form.js rename to components/panel/addDoctor/listMenu/generalInformation/form/index.js index 24ff005..441e36d 100644 --- a/components/panel/addDoctor/listMenu/generalInformation/form/Form.js +++ b/components/panel/addDoctor/listMenu/generalInformation/form/index.js @@ -8,7 +8,7 @@ import { Button } from "@mui/material"; import ArrowLeftPA from "@/components/icons/ArrowLeftPA"; import FieldDate from "./FieldDate"; -function Form() { +function Form({ setValue }) { const [data, setData] = useState({ name: { value: "احسان احمدی", isEdit: false }, medical_system_number: { value: 1741025645, isEdit: false }, @@ -100,6 +100,7 @@ function Form() {