We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5868c5 commit 022fdb0Copy full SHA for 022fdb0
src/pages/FileUpload/index.js
@@ -1,10 +1,13 @@
1
import React, { useState, useRef } from "react";
2
import Header from "components/Header";
3
-import axios, { CancelToken, isCancel } from "axios";
+import axios from "axios";
4
import { ProgressBar } from "react-bootstrap";
5
import ExternalInfo from "components/ExternalInfo";
6
import AppConfig from "App.config";
7
8
+const cancelToken = axios.CancelToken;
9
+const isCancel = axios.isCancel;
10
+
11
const FileUpload = () => {
12
const [uploadPercentage, setUploadPercentage] = useState(0);
13
const cancelFileUpload = useRef(null);
0 commit comments