From 8255283ec013f27bdb545932074554b1bb413b30 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Mon, 15 Jun 2026 00:30:55 +0330 Subject: [PATCH] fix(ui): remove invalid MUI v5 Button loading prop project-wide MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit prop loading روی Button فقط در MUI v6+ پشتیبانی می‌شود؛ این پروژه v5 است و هشدار "Received false for a non-boolean attribute loading" می‌داد. - دکمه‌های login/verify: disabled + CircularProgress شرطی (بازخورد بصری حفظ شد) - بقیه دکمه‌ها: loading → disabled (ادغام با disabled موجود در صورت وجود) Co-Authored-By: Claude Opus 4.8 --- app/component/ItemDoctor.js | 2 +- app/component/ModalLogout.js | 2 +- app/component/comment/SendAnswer.js | 2 +- app/component/date/dateTime/SendAppo.js | 2 +- app/component/modalSearchCity/Content.js | 2 +- components/appointment/detail/SubmitData.js | 2 +- .../clinic/components/doctors/head/modal/ButtonApply.js | 2 +- components/clinic/components/doctors/head/search/SendReq.js | 2 +- components/clinics/head/FilterButton.js | 2 +- components/clinics/head/filter/Content.js | 2 +- components/clinics/list/ItemClinic.js | 2 +- .../userAccount/detailUser/information/ButtonSendData.js | 3 +-- .../detailDoctor/cards/comments/modal/content/Form.js | 2 +- components/panel/addDoctor/form/sendReq/index.js | 3 +-- components/register/LogInPage.js | 6 +++--- components/register/verificationPage/SendReq.js | 4 ++-- 16 files changed, 19 insertions(+), 21 deletions(-) diff --git a/app/component/ItemDoctor.js b/app/component/ItemDoctor.js index 64ee0ed..9a262ab 100644 --- a/app/component/ItemDoctor.js +++ b/app/component/ItemDoctor.js @@ -98,7 +98,7 @@ function ItemDoctor({ doctor, loading, setDoctors, priority = false }) {

diff --git a/components/register/verificationPage/SendReq.js b/components/register/verificationPage/SendReq.js index 77a61c5..b75c301 100644 --- a/components/register/verificationPage/SendReq.js +++ b/components/register/verificationPage/SendReq.js @@ -1,4 +1,4 @@ -import { Button } from "@mui/material"; +import { Button, CircularProgress } from "@mui/material"; import { request } from "@/services/response"; import Cookies from "js-cookie"; import { handleTimeExpiresToken } from "@/helper"; @@ -112,7 +112,7 @@ function SendReq({ }} className="!rounded-[8px] !bg-[#5559CE]" > - تایید + {loading ? : "تایید"} ); }