diff --git a/src/components/shared/ImageWithFallback.tsx b/src/components/shared/ImageWithFallback.tsx index d841116..6ec746b 100644 --- a/src/components/shared/ImageWithFallback.tsx +++ b/src/components/shared/ImageWithFallback.tsx @@ -6,6 +6,7 @@ interface ImageWithFallbackProps { alt: string; className?: string; onClick?: () => void; + onContextMenu?: (e: React.MouseEvent) => void; maxRetries?: number; } @@ -14,6 +15,7 @@ const ImageWithFallback: React.FC = ({ alt, className = '', onClick, + onContextMenu, maxRetries = 2 // По умолчанию 2 попытки автоматической перезагрузки }) => { const [loading, setLoading] = useState(true); @@ -109,6 +111,7 @@ const ImageWithFallback: React.FC = ({
{/* Показываем индикатор загрузки, если изображение загружается */} {loading && ( diff --git a/src/components/shared/NotificationModal.tsx b/src/components/shared/NotificationModal.tsx index e9879fa..1923d1e 100644 --- a/src/components/shared/NotificationModal.tsx +++ b/src/components/shared/NotificationModal.tsx @@ -50,14 +50,14 @@ const NotificationModal: React.FC = ({
{showGalleryButton && ( )}