fix(doctors): resolve next/image http host and MUI v5 loading prop

- افزودن الگوی http برای api.clinic-pro.ir به next.config (عکس‌های بیمه
  با http برمی‌گردند و خطای 500 next/image می‌دادند)
- جایگزینی prop loading نامعتبر روی Button با disabled در SendReq/ButtonApply
  (loading فقط در MUI v6+ پشتیبانی می‌شود؛ این پروژه v5 است و lab نصب نیست)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-06-15 00:15:10 +03:30
co-authored by Claude Opus 4.8
parent dc1c6d25be
commit f3192945c7
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ function ButtonApply({ sendReq, setOpen }) {
return (
<div className="flex justify-end w-full">
<Button
loading={loading}
disabled={loading}
variant="contained"
onClick={handleClick}
className="!px-3 !py-2 !text-[16px] !font-medium"
+1 -1
View File
@@ -38,7 +38,7 @@ function SendReq({ filter, setFilter, setDataInURL, sendReq }) {
return (
<Button
loading={loading}
disabled={loading}
onClick={filterData}
className="!flex !m-1 !rounded-[4px] !w-[36px] sm:!w-[42px] md:!w-[49px] lg:!w-[56px] !min-w-[36px] sm:!min-w-[42px] md:!min-w-[49px] lg:!min-w-[56px]
!gap-2.5 !p-2.5 md:!p-4 !h-[calc(100%_-_8px)]"
+4
View File
@@ -8,6 +8,10 @@ const nextConfig = {
protocol: 'https',
hostname: 'api.clinic-pro.ir',
},
{
protocol: 'http',
hostname: 'api.clinic-pro.ir',
},
{
protocol: 'https',
hostname: 'back-dev.clinic-pro.ir',