aboutsummaryrefslogtreecommitdiff
path: root/src/components/comments
diff options
context:
space:
mode:
authorbrian-tagg <83606050+brian-tagg@users.noreply.github.com>2021-07-14 11:21:49 -0400
committerGitHub <noreply@github.com>2021-07-14 11:21:49 -0400
commit5e1ef04923a103dccbb48be34bf99dfb625b2d87 (patch)
tree48bf1c4af01dc3f111fa1cea155e4f69bfc3b4d7 /src/components/comments
parentdf7e6d5f07c0110e14209c274bf400e462952bd0 (diff)
Update src/components/comments/ZoomInCropper.tsx
Co-authored-by: Ivan Chen <ivan.if.chen@gmail.com>
Diffstat (limited to 'src/components/comments')
-rw-r--r--src/components/comments/ZoomInCropper.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/comments/ZoomInCropper.tsx b/src/components/comments/ZoomInCropper.tsx
index 5f14522e..43c4c6ff 100644
--- a/src/components/comments/ZoomInCropper.tsx
+++ b/src/components/comments/ZoomInCropper.tsx
@@ -35,7 +35,7 @@ export const ZoomInCropper: React.FC<ZoomInCropperProps> = ({
const [aspectRatio, setAspectRatio] = useState<number>(1);
// width and height of video, if video
const [origDimensions, setOrigDimensions] = useState<number[]>([0, 0]);
- const vidRef = useRef(null);
+ const vidRef = useRef<Video>(null);
// Stores the coordinates of the cropped image
const [x0, setX0] = useState<number>();