mirror of
https://github.com/ente-io/ente.git
synced 2025-08-10 16:32:39 +00:00
MutableRefObject is deprecated (all refs are mutable now)
This commit is contained in:
parent
b5418ea2e4
commit
cf93f80c0c
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user