diff --git a/src/pages/FileUpload/index.js b/src/pages/FileUpload/index.js index ea9cc08..2ffcb06 100644 --- a/src/pages/FileUpload/index.js +++ b/src/pages/FileUpload/index.js @@ -1,10 +1,13 @@ import React, { useState, useRef } from "react"; import Header from "components/Header"; -import axios, { CancelToken, isCancel } from "axios"; +import axios from "axios"; import { ProgressBar } from "react-bootstrap"; import ExternalInfo from "components/ExternalInfo"; import AppConfig from "App.config"; +const cancelToken = axios.CancelToken; +const isCancel = axios.isCancel; + const FileUpload = () => { const [uploadPercentage, setUploadPercentage] = useState(0); const cancelFileUpload = useRef(null);