refactor: enhance date selection logic in DatePicker and update appointment request parameters

This commit is contained in:
hamed
2025-11-17 14:18:15 +03:30
parent 63d968be1e
commit 1e510a84b1
5 changed files with 79 additions and 23 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ function List({ appo, hour, setHour, value }) {
<li key={idx}>
<Button
onClick={() => setHour(item)}
disabled={!item.status === "available"}
disabled={item.status !== "available"}
className={`
!w-full !rounded-[8px] !bg-[#EFEFEF] !flex !justify-center !items-center !py-[10px] !px-[14px] !h-[40px] md:!h-[42px] lg:!h-[44px]
${checkHour(item) ? "!bg-[#F79463] " : ""}