handle disable button if no data include in page add doctor

This commit is contained in:
Ehsan
2024-10-11 23:54:01 +03:30
parent 2f49c9e8c7
commit aecba57176
5 changed files with 29 additions and 6 deletions
+1 -2
View File
@@ -37,7 +37,6 @@ function AddDoctorPage() {
{ name: "پنج شنبه", morning_time: ["", ""], evening_time: ["", ""] },
],
});
console.log(data);
const components = [
<GeneralInformation
@@ -71,7 +70,7 @@ function AddDoctorPage() {
md:pt-[30px] pb-0 md:pb-[12px] lg:pb-[24px] px-0 md:px-[14px] lg:px-[26px] xl:px-[56px]"
>
<Step value={value} />
<div className="mt-[32px] px-[56px]">{components[value]}</div>
<div className="mt-[32px]">{components[value]}</div>
</div>
</div>
);