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:
@@ -16,7 +16,7 @@ function ButtonApply({ sendReq, setOpen }) {
|
|||||||
return (
|
return (
|
||||||
<div className="flex justify-end w-full">
|
<div className="flex justify-end w-full">
|
||||||
<Button
|
<Button
|
||||||
loading={loading}
|
disabled={loading}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
className="!px-3 !py-2 !text-[16px] !font-medium"
|
className="!px-3 !py-2 !text-[16px] !font-medium"
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ function SendReq({ filter, setFilter, setDataInURL, sendReq }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
loading={loading}
|
disabled={loading}
|
||||||
onClick={filterData}
|
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]
|
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)]"
|
!gap-2.5 !p-2.5 md:!p-4 !h-[calc(100%_-_8px)]"
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ const nextConfig = {
|
|||||||
protocol: 'https',
|
protocol: 'https',
|
||||||
hostname: 'api.clinic-pro.ir',
|
hostname: 'api.clinic-pro.ir',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
protocol: 'http',
|
||||||
|
hostname: 'api.clinic-pro.ir',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
protocol: 'https',
|
protocol: 'https',
|
||||||
hostname: 'back-dev.clinic-pro.ir',
|
hostname: 'back-dev.clinic-pro.ir',
|
||||||
|
|||||||
Reference in New Issue
Block a user