Fix eslint errors
This commit is contained in:
parent
88b2d8486a
commit
a931c9298f
|
@ -6,7 +6,7 @@ import { UploadFile } from "./UploadFile.tsx";
|
|||
import { useUploadStategy } from "./useUploadStrategy.ts";
|
||||
import { classnames } from "../utils/classnames.ts";
|
||||
import { ButtonIcon } from "../ButtonIcon/ButtonIcon.tsx";
|
||||
import { CodexData, UploadResponse } from "@codex-storage/sdk-js";
|
||||
import { CodexData } from "@codex-storage/sdk-js";
|
||||
import { SimpleText } from "../SimpleText/SimpleText.tsx";
|
||||
|
||||
interface CustomStyleCSS extends CSSProperties {
|
||||
|
|
|
@ -22,9 +22,8 @@ self.addEventListener("message", function (e) {
|
|||
});
|
||||
};
|
||||
|
||||
return codex
|
||||
.data()
|
||||
.then((data) => data.upload(rest.file, onProgress))
|
||||
return codex.data
|
||||
.upload(rest.file, onProgress)
|
||||
.then((result) => {
|
||||
abort = result.abort;
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import type { Meta } from "@storybook/react";
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { Codex, CodexData, UploadResponse } from "@codex-storage/sdk-js";
|
||||
import { Upload } from "../src/components/Upload/Upload";
|
||||
import { fn } from "@storybook/test";
|
||||
import "./Upload.stories.css";
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { Codex } from "@codex-storage/sdk-js";
|
||||
import { CodexData, UploadResponse } from "@codex-storage/sdk-js";
|
||||
|
||||
class CodexDataMock extends CodexData {
|
||||
|
|
Loading…
Reference in New Issue