MutableRefObject is deprecated (all refs are mutable now)

This commit is contained in:
Manav Rathi 2025-01-03 15:16:50 +05:30
parent b5418ea2e4
commit cf93f80c0c
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -697,7 +697,7 @@ const AlbumCollectionOptions: React.FC<AlbumCollectionOptionsProps> = ({
interface CollectionSortOrderMenuProps {
open: boolean;
onClose: () => void;
overFlowMenuIconRef: React.MutableRefObject<SVGSVGElement>;
overFlowMenuIconRef: React.RefObject<SVGSVGElement>;
onAscClick: () => void;
onDescClick: () => void;
}

View File

@ -50,8 +50,8 @@ import React, {
useEffect,
useRef,
useState,
type MutableRefObject,
type Ref,
type RefObject,
} from "react";
import uploadManager from "services/upload/uploadManager";
@ -791,8 +791,8 @@ const canvasToFile = async (
};
interface CommonMenuProps {
canvasRef: MutableRefObject<HTMLCanvasElement>;
originalSizeCanvasRef: MutableRefObject<HTMLCanvasElement>;
canvasRef: RefObject<HTMLCanvasElement>;
originalSizeCanvasRef: RefObject<HTMLCanvasElement>;
setTransformationPerformed: (v: boolean) => void;
canvasLoading: boolean;
setCanvasLoading: (v: boolean) => void;
@ -802,7 +802,7 @@ interface CommonMenuProps {
type CropMenuProps = CommonMenuProps & {
previewScale: number;
cropBoxProps: CropBoxProps;
cropBoxRef: MutableRefObject<HTMLDivElement>;
cropBoxRef: RefObject<HTMLDivElement>;
resetCropBox: () => void;
};