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