aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/components
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-08-31 18:33:29 +0800
committercrupest <crupest@outlook.com>2023-08-31 18:33:29 +0800
commit1a543da5a018d1a99b51bfe5d7d90edff0502a11 (patch)
tree3169fae9a4b9a6229566bb3243b61d3d9fa78395 /FrontEnd/src/components
parent4a6d8c606fab0215065ce65d2f105fafd8db7169 (diff)
downloadtimeline-1a543da5a018d1a99b51bfe5d7d90edff0502a11.tar.gz
timeline-1a543da5a018d1a99b51bfe5d7d90edff0502a11.tar.bz2
timeline-1a543da5a018d1a99b51bfe5d7d90edff0502a11.zip
Fix a fatal bug in geometry.
Diffstat (limited to 'FrontEnd/src/components')
-rw-r--r--FrontEnd/src/components/BlobImage.tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/FrontEnd/src/components/BlobImage.tsx b/FrontEnd/src/components/BlobImage.tsx
index cccf2f74..047a13b4 100644
--- a/FrontEnd/src/components/BlobImage.tsx
+++ b/FrontEnd/src/components/BlobImage.tsx
@@ -1,7 +1,13 @@
-import { ComponentPropsWithoutRef, useState, useEffect, useMemo } from "react";
+import {
+ useState,
+ useEffect,
+ useMemo,
+ Ref,
+ ComponentPropsWithoutRef,
+} from "react";
type BlobImageProps = Omit<ComponentPropsWithoutRef<"img">, "src"> & {
- imgRef?: React.Ref<HTMLImageElement>;
+ imgRef?: Ref<HTMLImageElement>;
src?: Blob | string | null;
keyBySrc?: boolean;
};