diff --git a/packages/dashboard-v2/src/components/Uploader/UploaderItem.js b/packages/dashboard-v2/src/components/Uploader/UploaderItem.js index 4f47809c..8ea279d6 100644 --- a/packages/dashboard-v2/src/components/Uploader/UploaderItem.js +++ b/packages/dashboard-v2/src/components/Uploader/UploaderItem.js @@ -5,12 +5,10 @@ import { StatusCodes } from "http-status-codes"; import copy from "copy-text-to-clipboard"; import path from "path-browserify"; import { useTimeoutFn } from "react-use"; -import { SkynetClient } from "skynet-js"; import { ProgressBar } from "./ProgressBar"; import UploaderItemIcon from "./UploaderItemIcon"; import buildUploadErrorMessage from "./buildUploadErrorMessage"; - -const skynetClient = new SkynetClient("https://siasky.net"); //TODO: proper API url +import skynetClient from "../../services/skynetClient"; const getFilePath = (file) => file.webkitRelativePath || file.path || file.name;