{children}
diff --git a/src/shared/components/MySpin/index.tsx b/src/shared/components/MySpin/index.tsx
index a13cf70..941fe57 100644
--- a/src/shared/components/MySpin/index.tsx
+++ b/src/shared/components/MySpin/index.tsx
@@ -1,6 +1,6 @@
-import { LoadingOutlined } from "@ant-design/icons";
-import { Spin } from "antd";
+import { LoadingOutlined } from '@ant-design/icons';
+import { Spin } from 'antd';
export default function MySpin() {
- return
} />;
+ return
} />;
}
diff --git a/src/shared/components/MySupsenseFallback/index.tsx b/src/shared/components/MySupsenseFallback/index.tsx
index c753655..656bb9c 100644
--- a/src/shared/components/MySupsenseFallback/index.tsx
+++ b/src/shared/components/MySupsenseFallback/index.tsx
@@ -13,7 +13,7 @@ export function MySupsenseFallback({
+
) : (
void;
fileType?: "image" | "video";
}) {
- const [uploading, setUploading] = useState(false);
-
const beforeUpload = (file: File) => {
if (!accept.includes(file.type)) {
console.error("File typ not allowed!");
@@ -54,17 +50,7 @@ export default function MyUpload({
headers={headers}
action={`${Constants.API_ADDRESS}${action}`}
onChange={(info) => {
- if (onChange) {
- console.log("call");
- onChange(info);
- }
-
- if (info.file.status === "uploading") {
- setUploading(true);
- } else if (info.file.status === "done") {
- console.log("done2");
- setUploading(false);
- }
+ if (onChange) onChange(info);
}}
beforeUpload={beforeUpload}
>
diff --git a/tsconfig.json b/tsconfig.json
index 545c655..6cf40b3 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,21 +1,21 @@
{
- "compilerOptions": {
- "baseUrl": "src",
- "target": "es5",
- "lib": ["dom", "dom.iterable", "esnext"],
- "allowJs": true,
- "skipLibCheck": true,
- "esModuleInterop": true,
- "allowSyntheticDefaultImports": true,
- "strict": true,
- "forceConsistentCasingInFileNames": true,
- "noFallthroughCasesInSwitch": true,
- "module": "esnext",
- "moduleResolution": "node",
- "resolveJsonModule": true,
- "isolatedModules": true,
- "noEmit": true,
- "jsx": "react-jsx"
- },
- "include": ["src"]
+ "compilerOptions": {
+ "baseUrl": "src",
+ "target": "es5",
+ "lib": ["dom", "dom.iterable", "esnext"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
+ "strict": true,
+ "forceConsistentCasingInFileNames": true,
+ "noFallthroughCasesInSwitch": true,
+ "module": "esnext",
+ "moduleResolution": "node",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "noEmit": false,
+ "jsx": "react-jsx"
+ },
+ "include": ["src"]
}