chore: upgrade to react 19

This commit is contained in:
wonfen
2025-05-14 10:47:33 +08:00
parent d1a2bd78d7
commit 1993e5dd51
7 changed files with 1245 additions and 1233 deletions

View File

@@ -97,7 +97,7 @@ export const EditorViewer = <T extends Language>(props: Props<T>) => {
onClose,
} = props;
const editorRef = useRef<monaco.editor.IStandaloneCodeEditor>();
const editorRef = useRef<monaco.editor.IStandaloneCodeEditor>(undefined);
const prevData = useRef<string | undefined>("");
const currData = useRef<string | undefined>("");

View File

@@ -12,7 +12,7 @@ export const FileInput = (props: Props) => {
const { t } = useTranslation();
// file input
const inputRef = useRef<any>();
const inputRef = useRef<any>(undefined);
const [loading, setLoading] = useState(false);
const [fileName, setFileName] = useState("");