feat(desktop): improve torrent file integration
This commit is contained in:
parent
00b9748516
commit
a1d4aab93f
12 changed files with 717 additions and 18 deletions
|
|
@ -2,6 +2,7 @@ import { ReactNode, useContext, useEffect, useState } from "react";
|
|||
import {
|
||||
AddTorrentResponse,
|
||||
ErrorDetails as ApiErrorDetails,
|
||||
TorrentInput,
|
||||
} from "../../api-types";
|
||||
import { APIContext } from "../../context";
|
||||
import { ErrorWithLabel } from "../../rqbit-web";
|
||||
|
|
@ -10,7 +11,7 @@ import { Button } from "./Button";
|
|||
|
||||
export const UploadButton: React.FC<{
|
||||
onClick: () => void;
|
||||
data: string | File | null;
|
||||
data: TorrentInput | null;
|
||||
resetData: () => void;
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue