Fix eslint errors

This commit is contained in:
Arnaud 2024-09-13 20:51:15 +02:00
parent 88b2d8486a
commit a931c9298f
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
4 changed files with 3 additions and 6 deletions

View File

@ -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 {

View File

@ -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;

View File

@ -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";

View File

@ -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 {